更新 – 1.5之后的自制软件版本
On 1st March 2018 the python formula will be upgraded to Python 3.x and a python@2 formula will be added for installing Python 2.7 (although this will be keg-only so neither python nor python2 will be added to the PATH by default without a manual brew link –force). We will maintain python2, python3 and python@3 aliases.
因此,要安装Python 3,请运行以下命令:
brew install python3
然后,自动安装pip或pip3,您可以通过pip install< package>安装任何软件包.
Homebrew的旧版本
不仅brew安装python3,还酿造postinstall python3
所以你必须运行:
brew install python3
brew postinstall python3
请注意,您应该检查控制台,因为它可能会导致错误,在这种情况下,不会安装pip3.