1. Python Python installation path and installation path \ Script folder has been added to the PATH environment variable.
2. Check the normal version of django:
import django
print(django.__version__)
2.2.5
3. Create a project: django-admin.py startproject test, error:
Traceback (most recent call last):
File "D:\Program Files\Python\Python37-32\Scripts\django-admin.py", line 2, in <module>
from django.core import management
ImportError: No module named django.core
4. View the catalog django running scripts
You can see django-admin.exe after there is a compiler
solve:
5. Use the django-admin.exe startproject test, you can create normal
6. Look produce an error message can be seen ImportError: No module named django.core, django.core module can not be found, the path may be less than django-admin.py look (although has been added to the PATH), you need to to manually specify django-admin.py
python "D:\Program Files\Python\Python37-32\Scripts\django-admin.py" startproject mytest
You can create normal, it recommended to create directly compiled exe file.