简体   繁体   English

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

[英]pip error “ValueError: ('Missing distribution spec', '==')” when installing pandas on ubuntu server

Hi I just started playing with servers and I am supposed to run this simple script in python. 嗨,我刚开始玩服务器,我应该在python中运行这个简单的脚本。 This script however, has dependencies, ie packages, like pandas. 但是,这个脚本有依赖关系,即包,如pandas。

so i decided to do pip install pandas == 0.14.0 but i kept getting an error message: 所以我决定做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

and i have no idea why. 我不知道为什么。

Can anyone please shed some light on this? 任何人都可以对此有所了解吗?

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

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

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