pycharm 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 enviro nment? code example

Example 1: 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 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?

sudo pip3 install virtualenv