Made a virtual environment, activated. Installed django, made startproject , but when I launch the manage.py file, an error appears

 Traceback (most recent call last): File "manage.py", line 8, in <module> from django.core.management import execute_from_command_line ImportError: No module named 'django' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "manage.py", line 14, in <module> import django ImportError: No module named 'django' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "manage.py", line 17, in <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?` 

Before that, everything worked fine, there were no problems. OS - Linux Deepin

  • Let's start your manage.py full launch algorithm from the console launch - andreymal
  • @andreymal [ screenshot.ru/upload/image/S9tY] - Milkiweed Gtlt
  • Janga exactly installed in the virtual environment? And then something does not look like - andreymal
  • In the virtual environment exactly the third python? - andreymal
  • @andreymal yes, pip3 was used when installing django - Milkiweed Gtlt

1 answer 1

 apt install python3 pip3 install virtualenv virtualenv env source env/bin/activate pip3 install django django-admin startproject nameproject python3 nameproject/manage.py runserver 

Should work