When I try to run my projects server i get this error:
File "manage.py", line 14, in <module>
import django
File "C:/.../.../.../..../..."
from django.utils.version import get_version
ImportError: No module named utils.version
Help, Please.
When I try to run my projects server i get this error:
File "manage.py", line 14, in <module>
import django
File "C:/.../.../.../..../..."
from django.utils.version import get_version
ImportError: No module named utils.version
Help, Please.
It is definitely a PATH issue. This may happen if you've installed Django as one user and trying to run your django web app as another one. The best way is to use virtualenv as xyres mentioned in the comments above.
Install virtualenv from
cmd.exe
, run it as an Administratorpip install virtualenv
Create your own virtual environment
virtualenv .venv
Activate virtual environment on Windows
.venv/Scripts/activate.bat
Or if you're using Linux
source .venv/bin/activate
Now you can install dependencies with pip as a part of your virtual environment
pip install -r requirements.txt
pip install django
You can exit virtual environment at any moment by typing
deactivate