2015-06-24 253 views
0

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

Brunos-MacBook-Pro:~ BrunoPaesLeme$ pip install /Macintosh HD/Users//Downloads/pycairo-1.10.0-cp27-none-win_amd64.whl Exception: Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-7.0.3-py2.7.egg/pip/basecommand.py", line 223, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-7.0.3-py2.7.egg/pip/commands/install.py", line 268, in run wheel_cache
File "/Library/Python/2.7/site-packages/pip-7.0.3-py2.7.egg/pip/basecommand.py", line 268, in populate_requirement_set wheel_cache=wheel_cache
File "/Library/Python/2.7/site-packages/pip-7.0.3-py2.7.egg/pip/req/req_install.py", line 207, in from_line wheel_cache=wheel_cache)
File "/Library/Python/2.7/site-packages/pip-7.0.3-py2.7.egg/pip/req/req_install.py", line 66, in init req = pkg_resources.Requirement.parse(req)
File "/Library/Python/2.7/site-packages/pip-7.0.3-py2.7.egg/pip/_vendor/pkg_resources/init.py", line 2960, in parse reqs = list(parse_requirements(s))
File "/Library/Python/2.7/site-packages/pip-7.0.3-py2.7.egg/pip/_vendor/pkg_resources/init.py", line 2891, in parse_requirements
raise ValueError("Missing distribution spec", line) ValueError: ('Missing distribution spec', '/Macintosh')

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

回答

0

尝试:

easy_install pip 
pip install /"filepath"/ 
0

我也有类似的问题与PIP安装。但是,如果我做“sudo su - ”,那么请执行我的pip install'fileName',为我解决问题。