[Solved] Error: Django is not importable in this environment

1. Question: It shows that there is no django module > download one, and prompts that it has been installed > prompts that the django module cannot be imported after startup

 

 

2. Solutions:

Looking at the interpreter of the project found that it is python37

The default pip is the python36 pip added to the environment variable

So you need to add the pip path of the python37 interpreter to the environment variable, after restarting Pycharm

Install django with pip3.7 install django==xxx.

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *