[英]How to setup python3 version on mac?
I have installed python 3.8.0
via pyenv
.我已经通过
pyenv
安装了python 3.8.0
。
pyenv which python
/Users/myname/.pyenv/versions/3.8.0/bin/python
If I run python3
I get如果我运行
python3
我得到
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?如何将
3.8.0
版本设置为默认版本?
By typing pyenv global 3.8
通过键入
pyenv global 3.8
You check get the list of options by typing pyenv -h
您可以通过键入
pyenv -h
检查获取选项列表
If you have multiple versions of python installed, you can do python -3.x -m...
如果您安装了多个版本的 python,您可以执行
python -3.x -m...
Also check if the env is active before opening it.还要检查环境是否在打开之前处于活动状态。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.