Import Error: No module named django
I had the same error, and this fix my issue
python -m pip install django
:) Done!
To check your path, you can use the following code:
import sys
print(sys.path)
If you already know where django is installed, it should be easy to test if the desired directory is in your path with directory in sys.path
.
Regarding where your PYTHONPATH
is defined, note that it's an environment variable, so you can check its value (if defined) with: echo $PYTHONPATH