Therefore, I looked through a lot of questions similar to mine, however I did not find a specific answer. My specs Comp is the 64-bit version of Windows 7.
My problem is this:
1) I installed virtualenv using pip:
pip install virtualenv
2) After that, I created and activated a new environment:
path/virtualenv env ... path/to/env/Scripts/activate
3) When starting a new environment, I installed django:
(env) path/pip install django
4) After a successful installation, I am ready to make a project. However, by trying:
path/django-admin.py startproject test
I get the following error:
File "C:/path/env/Scripts/django-admin.py", line 2, in (module) from django.core import management ImportError: No module named django.core
I have tried various solutions posted by users, including the full path:
python C:/path/to/django-admin.py startproject test
I also verified that the versions of Python they are referencing are correct, since both inside and outside of virtualenv it is linked to Python27. Many other solutions talked about PYTHONPATH or syspath, however when I import django or manageemnet into the python shell, they work fine.
I have a feeling that it may have something to do with paths, but I'm not sure how the virtual interface interacts with system paths. Since it is self-sufficient and the system paths are systemic, is it necessary to have something in the path specifically?
As an aside, my django-admin.py file is in both
path/env/Scripts
and
path/env/Lib/site-packages/django/bin
and the django folder is in
path/env/Lib/site-packages
How to solve this problem?