Reputation: 51
I have used PIP install Django in my virtualenv and I get the following message: Requirement already satisfied (use --upgrade to upgrade): django in virtual\env\folder\lib\site-packages\django-1.7.6-py2.7.egg
However in the tutorial it is expecting a django-admin.py file in the lib folder. Previously lib==scripts when using Windows but the file is in neither lib nor scripts.
What do I need to do in order to have my django-admin file in the correct directory?
Scripts directory:
Directory of C:\virtual\env\folder\Scripts
18/03/2015 10:23 <DIR> .
18/03/2015 10:23 <DIR> ..
18/03/2015 10:23 2,379 activate
18/03/2015 10:23 596 activate.bat
18/03/2015 10:23 8,252 activate.ps1
18/03/2015 10:23 1,129 activate_this.py
18/03/2015 10:23 348 deactivate.bat
18/03/2015 10:22 95,138 easy_install-2.7.exe
18/03/2015 10:22 95,138 easy_install.exe
18/03/2015 10:23 95,110 pip.exe
18/03/2015 10:23 95,110 pip2.7.exe
18/03/2015 10:23 95,110 pip2.exe
18/03/2015 10:22 26,624 python.exe
18/03/2015 10:22 27,648 pythonw.exe
12 File(s) 542,582 bytes
2 Dir(s) 54,728,036,352 bytes free
thanks
Upvotes: 3
Views: 808
Reputation: 14311
Have you tried virtualenvwrapper? It makes life as a developer much, much easier.
pip install virtualenvwrapper
Then an example on getting started:
mkvirtualenv myproject # only necessary the first time
workon myproject # for an existing virtualenv
pip install django
django-admin.py startproject myproject
...
deactivate virtualenvwrapper
virtualenvwrapper has taken care of a lot of the pathing issues I've run into on Windows (I have a VM which has to support specific versions of Windows, Mac, and Vagrant). I hope this helps.
Regards,
-Tim
Upvotes: 3