I installed django framework in virtual env and now it is given me an import error.
(WebEnvironment) D:\conda project\web\mysite>python manage.py runserver Traceback (most recent call last): File "manage.py", line 8, in
from django.core.management import execute_from_command_line ModuleNotFoundError: No module named 'django'
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "manage.py", line 14, in ) from exc ImportError: Couldn't import Django. Are you sure it's installed and available o n your PYTHONPATH environment variable? Did you forget to activate a virtual env ironment?
my_env\Scripts\activate.baton windows. If you use some IDE, then you need to set your IDE to use that virtual environment. - ipinak