-1

I have installed python 3.8.0 via pyenv.

pyenv which python
/Users/myname/.pyenv/versions/3.8.0/bin/python

If I run python3 I get

python3           
Python 3.6.8rc1 (v3.6.8rc1:cc3e73212a, Dec 11 2018, 17:37:34) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

If I check

which python3
/Library/Frameworks/Python.framework/Versions/3.6/bin/python3

How can I set the 3.8.0 version as default?

ForceBru
  • 43,482
  • 10
  • 63
  • 98
emax
  • 6,965
  • 19
  • 74
  • 141

2 Answers2

0

By typing pyenv global 3.8

You check get the list of options by typing pyenv -h

rkrishnasanka
  • 166
  • 1
  • 9
0

If you have multiple versions of python installed, you can do python -3.x -m ...

Also check if the env is active before opening it.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Manu1800
  • 145
  • 7