You can use pyenv to install python with:
brew install pyenv
pyenv install 2.7.18
Optionally set it to your global default:
pyenv global 2.7.18
Nice article on why using pyenv is better than using brew to manage your python installation.
To make python binary available globally, add shims to PATH:
PATH=$(pyenv root)/shims:$PATH
本文介绍了如何使用pyenv安装Python 2.7.18,设置为默认版本,并指导如何将Python二进制文件添加到全局PATH,以及为何选择pyenv而非Homebrew。同时提到了如何通过shims让Python可用。
1万+

被折叠的 条评论
为什么被折叠?



