首页 文章

Python pip安装错误

提问于
浏览
0

我刚刚在我的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 //下载/ pycairo-1.10.0-cp27-none-win_amd64.whl例外:Traceback(最近调用最后一次):文件“/ Library / Python /2.7/site-packages/pip-7.0.3-py2.7.egg/pip/basecommand.py“,第223行,主状态= self.run(options,args)文件”/Library/Python/2.7/ site-packages / pip-7.0.3-py2.7.egg / pip / commands / install.py“,第268行,在run wheel_cache文件中”/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行,in_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))文件“/ Library / Python / 2.7 / site-packages / pip-7.0.3-py2.7.egg / pip / _vendor / pkg_resources / init.py“,第2891行,在parse_requirements中引发ValueError(”缺少分发规范“,行)ValueError :( '缺少分发规范','/ Macintosh')

谁知道我做错了什么?任何帮助,将不胜感激 .

2 回答

  • 1

    尝试:

    easy_install pip
    pip install /"filepath"/
    
  • 0

    我和pip install有类似的问题 . 但是,如果我做“sudo su - ”然后执行我的pip install'fileName',那就解决了我的问题 .

相关问题