[英]Problems installing python 3.6 with pyenv on Mac OS Big Sur
[英]pyenv versions doesnt show anything after installing other version of python on mac big sur
为什么它不显示我的 python 版本安装
% pyenv versions
* system (set by /Users/axilaris/.pyenv/version)
I know I have Python 3.6 (that comes with Big Sur) and 3.8 and 3.9 (I have installed using Python.pkg installer - https://www.python.org/downloads/ )
我已经安装了 pyenv
brew install pyenv
更新(这里是现有的 python 我发现存在于我的 Mac 中):
% pwd
/Library/Frameworks/Python.framework/Versions
% ls -al
total 0
drwxrwxr-x 6 root wheel 192 Jan 11 14:18 .
drwxr-xr-x 6 root wheel 192 Jan 11 14:18 ..
drwxrwxr-x 10 root admin 320 Nov 8 2017 3.6
drwxrwxr-x 10 root admin 320 Jan 2 18:24 3.8
drwxrwxr-x 11 root admin 352 Jan 11 14:18 3.9
lrwxr-xr-x 1 root wheel 3 Jan 11 14:18 Current -> 3.9
% python -V
Python 2.7.16
% python3 -V
Python 3.9.1
in another location
% ls -al
total 0
drwxr-xr-x 7 root wheel 224 Jan 1 2020 .
drwxr-xr-x 5 root wheel 160 Jan 1 2020 ..
lrwxr-xr-x 1 root wheel 3 Jan 1 2020 2.3 -> 2.7
lrwxr-xr-x 1 root wheel 3 Jan 1 2020 2.5 -> 2.7
lrwxr-xr-x 1 root wheel 3 Jan 1 2020 2.6 -> 2.7
drwxr-xr-x 11 root wheel 352 Jan 1 2020 2.7
lrwxr-xr-x 1 root wheel 3 Jan 1 2020 Current -> 2.7
% pwd
/System/Library/Frameworks/Python.framework/Versions
pyenv versions
只显示由 pyenv安装和管理的版本
您需要像这样使用 pyenv 进行安装,例如: pyenv install 3.7.4
。 然后它也会列出那些 Python 安装。 我在大苏尔,它对我来说很好用。 祝你好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.