Pip error "ValueError: ('Missing distribution spec', '==')" when installing pandas on ubuntu server

Hi I just started playing with servers and I have to run this simple script in python. However, this script has dependencies, i.e. packages like pandas.

so I decided to do pip install pandas == 0.14.0

, but I kept getting the error:

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 shed some light on this?

+3


source to share


1 answer


There should be no spaces pip install pandas==0.14.0 # <- not pandas == 0.14.0



+2


source







All Articles