繁体   English   中英

Python pip安装错误

[英]Python pip install error

我刚刚在MAC(Yosemite)上安装了Python 3.4.3。 我需要安装几个lxml,但是每次键入:pip install /“” /时,我都会收到错误消息。 我遵循了多个教程并安装了pip。 MAC已经有Python 2.7。,但是我安装了3.4.3。 版本,不确定是否是问题所在。 错误消息是:

Brunos-MacBook-Pro:〜BrunoPaesLeme $ pip install / Macintosh HD / Users // Downloads / pycairo-1.10.0-cp27-none-win_amd64.whl例外:回溯(最近一次通话是最近一次):
主文件223行中的文件“ /Library/Python/2.7/site-packages/pip-7.0.3-py2.7.egg/pip/basecommand.py”
状态= self.run(选项,参数)
运行wheel_cache中的文件“ /Library/Python/2.7/site-packages/pip-7.0.3-py2.7.egg/pip/commands/install.py”,行268
文件“ /Library/Python/2.7/site-packages/pip-7.0.3-py2.7.egg/pip/basecommand.py”,行268,位于populate_requirement_set wheel_cache = wheel_cache中
文件“ /Library/Python/2.7/site-packages/pip-7.0.3-py2.7.egg/pip/req/req_install.py”,第207行,位于from_line wheel_cache = wheel_cache)
文件“ /Library/Python/2.7/site-packages/pip-7.0.3-py2.7.egg/pip/req/req_install.py”,第66行, init req = pkg_resources.Requirement.parse(req)
文件“ /Library/Python/2.7/site-packages/pip-7.0.3-py2.7.egg/pip/_vendor/pkg_resources/ init .py”,行2960,以parse reqs = list(parse_requirements(s))
在parse_requirements中的第2891行,文件“ /Library/Python/2.7/site-packages/pip-7.0.3-py2.7.egg/pip/_vendor/pkg_resources/ init .py”
引发ValueError(“ Missing distribution spec”,line)ValueError:('Missing distribution spec','/ Macintosh')

有人知道我可能做错了吗? 任何帮助,将不胜感激。

尝试:

easy_install pip
pip install /"filepath"/

我对pip安装有类似的问题。 但是,如果我执行“ sudo su-”,然后进行pip安装“ fileName”,则可以为我解决问题。

暂无
暂无

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

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