mac python 版本管理

安装 pyenv

 brew install pyenv
 echo -e 'if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile

查看版本

pyenv install -l

安装版本

pyenv install 3.6.8

全局指定

pyenv global 3.6.8

指定当前

pyenv local 3.6.8
pyenv local --unset

卸载

pyenv uninstall 3.5.2

下载很慢

wget https://registry.npmmirror.com/-/binary/python/3.9.0/Python-3.9.0.tar.xz -P ~/.pyenv/cache/

pyenv install 3.9.0

镜像地址

https://registry.npmmirror.com/binary.html?path=python/

posted @ 2023-03-09 09:11  vx_guanchaoguo0  阅读(22)  评论(0编辑  收藏  举报