I do have Win7 64 bit. Sequence of my action is below
- I have installed python 2.7.3. system path is clear.
- Then i did install virtualenv and pip
Next is sequence of mine command
- cd c:\Users\developer\
- mkdir .virtualenv
- cd .virtualenv
- virtualenv --distribute --no-site-packages djangos
- cd djangos
- cd script
- activate.bat
- pip install django
now i include into system path env a directory
c:\Users\developer\.virtualenv\django\scripts
here is the problem. if type in console
cd c:\Project
django-admin.py startproject helloworld
then i am getting
Traceback (most recent call last):
File "C:\Users\developer\.virtualenv\djangos\Scripts\django-admin.py", line 2, in <module>
from django.core import management
ImportError: No module named django.core
but if i do run
python
and the inside interpreter
>>import django
>>django.VERSION
>>(1, 4, 0, 'final', 0)
>>from django import core
>>from django.core import managment
I dont receive any error
only way to create project it is to run
(djangos) c:\Projects>python c:\Users\developer.virtualenv\djangos\Scripts\django-admin.py startproject hello
if there is a way to avoid every time to type full path in cli?
activete.bat
? shouldn't it beactivate.bat
– Pierre Lacave