pip missing for osx homebrew installed python3.5

2019-06-24 09:39发布

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条回答
爷、活的狠高调
2楼-- · 2019-06-24 10:24

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.

查看更多
登录 后发表回答