Sourav
Sourav

Reputation: 504

Unable to install a specific version of django on virtualenv

I have been trying to install django 1.8 on virtualenv, i performed the following steps:

  1. changed to my project directory
  2. changed to scripts folder of virtual environment which I created
  3. activated the virtual env
  4. typed command: pip install django == 1.8

Nothing worked

also, tried pip install django and easy_install django, however, none worked.

Could you please help me out ?

Upvotes: 0

Views: 512

Answers (3)

Andre Araujo
Andre Araujo

Reputation: 2400

Like you haven't shared the output error, I suggest some actions:

  1. Try to use the absolute path or add the path of your pip installation to your PATH system variable:

Go to CMD change the python instalation directory C:\>cd \Python27\Scripts and type C:\Python27\Scripts>pip -h

If works well you can use the absolute path C:\Python27\Scripts>pip install "django==1.8" or add the path of your pip installation to your PATH variable using the command above:

C:\Python27\Scripts>setx PATH "%PATH%;C:\Python27\Scripts"

SUCCESS: Specified value was saved.
  1. Another attempt is updating pip scripts using easy_install

    (FlaskEnv27) E:\Projects\FlaskEnv27\Scripts>easy_install pip Searching for pip Best match: pip 1.5.6 Removing pip 1.3.1 from easy-install.pth file Adding pip 1.5.6 to easy-install.pth file Installing pip-script.py script to E:\Projects\FlaskEnv27\Scripts Installing pip.exe script to E:\Projects\FlaskEnv27\Scripts Installing pip.exe.manifest script to E:\Projects\FlaskEnv27\Scripts Installing pip3.4-script.py script to E:\Projects\FlaskEnv27\Scripts Installing pip3.4.exe script to E:\Projects\FlaskEnv27\Scripts Installing pip3.4.exe.manifest script to E:\Projects\FlaskEnv27\Scripts Installing pip3-script.py script to E:\Projects\FlaskEnv27\Scripts Installing pip3.exe script to E:\Projects\FlaskEnv27\Scripts Installing pip3.exe.manifest script to E:\Projects\FlaskEnv27\Scripts

    Using c:\python27\lib\site-packages Processing dependencies for pip Finished processing dependencies for pip

Upvotes: 0

NEOatNHNG
NEOatNHNG

Reputation: 934

One problem could be that the command line doesn't tokenize the command correctly. Try the following (with the quotes around the requirement specifier):

pip install "django==1.8"

Upvotes: 1

A J
A J

Reputation: 3754

Can you try this command:

sudo pip install django==1.8

Upvotes: 2

Related Questions