简体   繁体   中英

couldn't import django:importError

I am working on a Django project and at the beginning everything was going well . But for say 2 days i'm not more able to run my project using the Python run manage.py it gives me this error

Traceback (most recent call last): File "manage.py", line 17, in "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 use Anaconda as virtual environment . During my debugging process I checked the installed packages in the environment , and this is the output.

日

I also use python 3.8 as interpreter but outside the virtual environment.

检查解释器是否指向 conda env 目录。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM