简体   繁体   English

osx自制软件安装python3.5缺少pip

[英]pip missing for osx homebrew installed python3.5

I use homebrew to install and mantain python installations on OSX 我使用自制程序在OSX上安装和保存python安装

Since latest python3 update pip is missing. 由于缺少最新的python3更新点。 The pip module for python2.7 is present while it is missing for python3 python2的pip模块存在,而python3缺少它

It would be nice to have some suggestions on how to install it so that it would not break at every python3 upgrade 有一些关于如何安装它的建议,以便它不会在每次python3升级时破坏,这将是一件好事

Please note that the packages are installed using homebrew (eg. brew install pythonX.X) 请注意,软件包是使用自制软件安装的(例如brew install pythonX.X)

Following are the system information: OS: OSX 10.11.2 (el capitan) 以下是系统信息:OS:OSX 10.11.2(el capitan)

python + pip installation status python + pip安装状态
- python2.7.11 + pip (OK!) - python2.7.11 + pip(OK!)
- python3.5.1 + pip (pip is missing!) - python3.5.1 + pip(pip丢失!)

Following is the output from the command 'which -a python' 以下是命令'which -a python'的输出
/usr/local/bin/python 在/ usr / local / bin目录/蟒蛇
/usr/bin/python 在/ usr / bin中/蟒蛇

thanks a lot in advance for your help 非常感谢您的帮助

Same on High Sierra. 同样在High Sierra。 Matt W's solution worked: Matt W的解决方案有效:

$ brew uninstall python3
$ unset PYTHONPATH
$ brew install python3

Another 6 minutes waiting... go grab a coffee. 再等6分钟......去喝咖啡。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM