简体   繁体   English

Pip的Python自酿错误

[英]Python Homebrew Error with Pip

I installed homebrew and which python gives /usr/local/bin/python . 我安装了自制软件,哪个python提供了/ usr / local / bin / python。 However when I type which pip I get/usr/local/bin/pip and not the desired /usr/local/share/python/pip 但是,当我键入哪个pip时,我会得到/ usr / local / bin / pip而不是所需的/ usr / local / share / python / pip

How do I fix this? 我该如何解决?

For my python 2.7.6 installation: 对于我的python 2.7.6安装:

My pip is installed to: /usr/local/bin/pip What makes you think it should be installed to /usr/local/share/python/pip ? 我的pip已安装到: /usr/local/bin/pip是什么让您认为应该将其安装到/usr/local/share/python/pip

Are you seeing a problem when you try and use pip install (whatever) ? 尝试使用pip install (whatever)时是否遇到问题?

A linux command must be in a bin directory so you have no problem. linux命令必须位于bin目录中,因此您没有问题。 Pip should be store in /usr/local/bin/pip not in /usr/local/share/python/pip . /usr/local/bin/pip应该存储在/usr/local/bin/pip而不是/usr/local/share/python/pip

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

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