pip missing for osx homebrew installed python3.5

痞子三分冷 提交于 2019-12-10 17:29:58

问题


I use homebrew to install and mantain python installations on OSX

Since latest python3 update pip is missing. The pip module for python2.7 is present while it is missing for python3

It would be nice to have some suggestions on how to install it so that it would not break at every python3 upgrade

Please note that the packages are installed using homebrew (eg. brew install pythonX.X)

Following are the system information: OS: OSX 10.11.2 (el capitan)

python + pip installation status
- python2.7.11 + pip (OK!)
- python3.5.1 + pip (pip is missing!)

Following is the output from the command 'which -a python'
/usr/local/bin/python
/usr/bin/python

thanks a lot in advance for your help


回答1:


Same on High Sierra. Matt W's solution worked:

$ brew uninstall python3
$ unset PYTHONPATH
$ brew install python3

Another 6 minutes waiting... go grab a coffee.



来源:https://stackoverflow.com/questions/34446910/pip-missing-for-osx-homebrew-installed-python3-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!