Tuesday, February 1, 2022

[SOLVED] Missing distribution spec error using pip install from requirements

Issue

I have just created a fresh virtualenv into which I want to run my pip install. However, I'm getting this error:

raise ValueError("Missing distribution spec", line)
ValueError: ('Missing distribution spec', '/path/to/dir/requirements.txt')

My requirements.txt:

Django==1.3
Jinja2==2.6
MySQL-python==1.2.3
PIL==1.1.7
Pygments==1.5
Sphinx==1.1.3
Werkzeug==0.8.3
django-debug-toolbar==0.9.4
django-excel-response==1.0
django-extensions==0.8
docutils==0.9.1
ipython==0.12
wsgiref==0.1.2

What is going wrong?


Solution

You must be doing something wrong. Something like: pip install path/to/requirements.txt, but the requirements file must be passed with -r argument:

pip install -r path/to/requirements.txt

Hugs.



Answered By - Vinicius Cainelli
Answer Checked By - Senaida (WPSolving Volunteer)