我刚刚使用Homebrew从Python 3.4升级到Python 3.6.
输出状态:
Pip, setuptools, and wheel have been installed. To update them
pip3 install --upgrade pip setuptools wheel
You can install Python packages with
pip3 install <package>
They will install into the site-package directory
/usr/local/lib/python3.6/site-packages
Run Code Online (Sandbox Code Playgroud)
我试着跑
pip3 install --upgrade pip setuptools wheel
Run Code Online (Sandbox Code Playgroud)
但它不会升级Python 3.6的pip.相反,它在Python 3.4中找到pip3并说"满足要求":
Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages
Collecting setuptools
Downloading setuptools-33.1.1-py2.py3-none-any.whl (472kB)
100% |????????????????????????????????| 481kB 1.0MB/s
Collecting wheel
Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
100% |????????????????????????????????| 71kB 5.7MB/s
Installing collected packages: setuptools, wheel
Found existing installation: setuptools …Run Code Online (Sandbox Code Playgroud)