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? code example
Example 1: ImportError: Couldn
pip install virtualenv
python -m venv venv
python3 -m venv venv
cd myproject/venv/Scripts/activate
Example 2: 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?
django-admin --version
Example 3: 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?
pip install django
Example 4: 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?
source newenv/bin/activate
Example 5: 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?
sudo pip3 install virtualenv
Example 6: 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?
virtualenv newenv