问题描述
我使用自制软件在OSX上安装和维护python安装
I use homebrew to install and mantain python installations on OSX
由于缺少最新的python3更新点.存在python2.7的pip模块,而python3缺少pip模块
Since latest python3 update pip is missing.The pip module for python2.7 is present while it is missing for python3
有一些关于如何安装它的建议会很高兴,这样它就不会在每次python3升级时都损坏
It would be nice to have some suggestions on how to install it so that it would not break at every python3 upgrade
请注意,这些软件包是使用自制软件安装的(例如brew install pythonX.X)
Please note that the packages are installed using homebrew (eg. brew install pythonX.X)
以下是系统信息:作业系统:OSX 10.11.2(el capitan)
Following are the system information:OS: OSX 10.11.2 (el capitan)
python + pip安装状态
-python2.7.11 +点(确定!)
-python3.5.1 +点(缺少点!)
python + pip installation status
- python2.7.11 + pip (OK!)
- python3.5.1 + pip (pip is missing!)
以下是命令"which -a python"的输出.
/usr/local/bin/python
/usr/bin/python
Following is the output from the command 'which -a python'
/usr/local/bin/python
/usr/bin/python
非常感谢您的帮助
推荐答案
与High Sierra相同. Matt W的解决方案有效:
Same on High Sierra. Matt W's solution worked:
$ brew uninstall python3
$ unset PYTHONPATH
$ brew install python3
再等6分钟...去喝杯咖啡.
Another 6 minutes waiting... go grab a coffee.
这篇关于OSP Homebrew安装的python3.5缺少pip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!