我使用 homebrew 在 OSX 上安装和维护 python 安装
由于缺少最新的 python3 更新 pip。 python2.7 的 pip 模块存在,而 python3 缺少 pip 模块
最好有一些关于如何安装它的建议,这样它就不会在每次 python3 升级时中断
请注意,这些软件包是使用 Homebrew 软件安装的(例如 brew install pythonX.X)
系统信息如下: 操作系统:OSX 10.11.2 (el capitan)
python + pip安装状态
- python2.7.11 + pip(好!)
- python3.5.1 + pip(缺少pip!)
以下是命令“which -a python”的输出
/usr/local/bin/python
/usr/bin/python
非常感谢您的帮助
最佳答案
在 High Sierra 上也是如此。 Matt W 的解决方案奏效了:
$ brew uninstall python3
$ unset PYTHONPATH
$ brew install python3
再等 6 分钟...去喝杯咖啡。
关于python - osx homebrew 缺少 pip 安装 python3.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34446910/