[英]Mac install python3.6 with brew
我想安装 python 3.6 版。 当我执行brew install python
它会安装最新版本的 python 即3.8
。
我尝试了以下解决方案,但它给了我错误。
brew install --ignore-dependencies https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb
错误:
错误:从 GitHub 提交 URL 调用安装 python 被禁用! 使用 'brew extract python' 来稳定点击 GitHub。
我什至在此链接中尝试了解决方案,但没有奏效。
当我这样做时:
brew search python
我没有找到python@3.6
init
也许你应该做pyenv
来管理不同的 python 版本。
brew install pyenv
pyenv install 3.6.5
pyenv install 3.7.4
如果你想控制shell使用不同的python版本,你可以试试这个:
pyenv shell 3.6.5
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.