[Fixed]-Raise ValueError("Expected "+item_name+" in",line,"at",line[p:]) ValueError: ('Expected version spec in', 'django~=1.9.0', 'at', '~=1.9.0')

1👍

It appears that version (1.5.6) of pip does not recognize the compatible release specifier ~=.

You can try the following version specifications which are equivalent to ~=1.9.0:

pip install django>=1.9.0

Or:

pip install django==1.9.*

In any case, you may also want to upgrade to the latest version of pip using:

pip install --upgrade pip

0👍

Do away with -r unless you are reading from a file. Use:

C:/Python34/python -m pip install django~=1.9.0

Leave a comment