您好,我刚开始玩服务器,我应该在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
我不明白为什么。
任何人都可以对此有所了解吗?
答案 0 :(得分:2)
应该没有空格pip install pandas==0.14.0 # <- not pandas == 0.14.0