点击错误“ValueError:('缺少分发规范','==')”在ubuntu服务器上安装pandas时

时间:2014-11-12 18:19:19

标签: python ubuntu pip

您好,我刚开始玩服务器,我应该在python中运行这个简单的脚本。但是,这个脚本有依赖关系,即包,如pandas。

所以我决定pip install pandas == 0.14.0,但我不断收到错误消息:

Exception:
Traceback (most recent call last):
  File "/root/.virtualenvs/occupy/local/lib/python2.7/site-packages/pip/basecomm
    status = self.run(options, args)
  File "/root/.virtualenvs/occupy/local/lib/python2.7/site-packages/pip/commands
    InstallRequirement.from_line(name, None))
  File "/root/.virtualenvs/occupy/local/lib/python2.7/site-packages/pip/req.py",
    return cls(req, comes_from, url=url, prereleases=prereleases)
  File "/root/.virtualenvs/occupy/local/lib/python2.7/site-packages/pip/req.py",
    req = pkg_resources.Requirement.parse(req)
  File "/root/.virtualenvs/occupy/local/lib/python2.7/site-packages/pip/_vendor/
    reqs = list(parse_requirements(s))
  File "/root/.virtualenvs/occupy/local/lib/python2.7/site-packages/pip/_vendor/
    raise ValueError("Missing distribution spec", line)
ValueError: ('Missing distribution spec', '==')

Storing debug log for failure in /root/.pip/pip.log

我不明白为什么。

任何人都可以对此有所了解吗?

1 个答案:

答案 0 :(得分:2)

应该没有空格pip install pandas==0.14.0 # <- not pandas == 0.14.0