I have more than two hours haven't set up the environment question!
I followed the book "Python programming from entry to practice" of chapter 18 to install django module, to create the database, the terminal type in Python manage. Py. Migrate, shows the Traceback (most recent call last) :
The File "is the manage. Py", line 8, the in & lt; module>
The from the django. Core. Management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (the most recent call last) :
The File "is the manage. Py", line 14, the in & lt; module>
The import django
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (the most recent call last) :
The File "is the manage. Py", line 17, in & lt; module>
"Couldn 't import Django. Are you sure it' s installed" and "
ImportError: Couldn 't import Django. Are you sure it' s installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
I baidu many upgrade environment variables are not installed django module but always shows no installation for the collapse of, have a great god can teach how to return a responsibility
CodePudding user response:
Error message said, there is no installation is not installed, that how to detect haven't installed django?The terminal input python or python3
To import the django, see have not have an error,
if you say you have installed django, but repay No module django, the reason is probably your computer has multiple python version,