Django is not importable in this environment.
(1) the first thing to illustrate the point, now on the network all kinds of copy, about today I encountered this problem, didn’t find a good way to online, and open a, then open a, completely identical copy, was no, really is too sad, to solve the problem it took me 4 to 5 hours (I am a rookie!
If this article does not obtain my consent, do not reprint and plagiarism!
(2) PyCharm downloaded from the Internet or copied from other computers cannot be opened directly, and some Settings need to be made, which is very annoying! Of course, the main problem is to set up the interpreter, but there are other problems, such as Django is not importable in this environment. My software version is python3.4.3 and django 2.0.7
(3) Solutions to this problem:
The file – & gt; Open, find your project file (project name), as follows, my project file is under the Learn folder, which has 4 projects
Then look at the following:
Select open in the new window to open a new window. Select another window to close the one you are currently open.
My entire project list is as follows:
It doesn’t matter that my project name is not the same as zaxt_tMP12 under the project.
And then: file – & gt; Settings – & gt; Project Interpreter
Then, look at the picture:
Hide interpreters that connect to other projects:
The effect is as follows, then green + :
If it’s OK, the result is like this (don’t follow it here, I’m just showing you!! :
Django is not importable in this environment if you don’t grab Inherit global site-packages, you will get an error when you run.
Very distressed! ?You’ve been messing with me for a long time. In fact, here’s what you should do:
Then, apply – & gt; ok
Django is out!!
(4) Finally, add an interpreter:
Select the interpreter we set up in the previous step! And run manager.py Runserver. Click Run again and you’re ready to run!
It took quite a while to write the document, redid it and liked it if it helped.
If this article does not obtain my consent, do not reprint and plagiarism!
(1) the first thing to illustrate the point, now on the network all kinds of copy, about today I encountered this problem, didn’t find a good way to online, and open a, then open a, completely identical copy, was no, really is too sad, to solve the problem it took me 4 to 5 hours (I am a rookie!
If this article does not obtain my consent, do not reprint and plagiarism!
(2) PyCharm downloaded from the Internet or copied from other computers cannot be opened directly, and some Settings need to be made, which is very annoying! Of course, the main problem is to set up the interpreter, but there are other problems, such as Django is not importable in this environment. My software version is python3.4.3 and django 2.0.7
(3) Solutions to this problem:
The file – & gt; Open, find your project file (project name), as follows, my project file is under the Learn folder, which has 4 projects
Then look at the following:
Select open in the new window to open a new window. Select another window to close the one you are currently open.
My entire project list is as follows:
It doesn’t matter that my project name is not the same as zaxt_tMP12 under the project.
And then: file – & gt; Settings – & gt; Project Interpreter
Then, look at the picture:
Hide interpreters that connect to other projects:
The effect is as follows, then green + :
If it’s OK, the result is like this (don’t follow it here, I’m just showing you!! :
Django is not importable in this environment if you don’t grab Inherit global site-packages, you will get an error when you run.
Very distressed! ?You’ve been messing with me for a long time. In fact, here’s what you should do:
Then, apply – & gt; ok
Django is out!!
(4) Finally, add an interpreter:
Select the interpreter we set up in the previous step! And run manager.py Runserver. Click Run again and you’re ready to run!
It took quite a while to write the document, redid it and liked it if it helped.
If this article does not obtain my consent, do not reprint and plagiarism!
Read More:
- Some mistakes and solutions in Django
- How to solve the problem of error reporting in the introduction of Python Django no module name ‘Django. Utils. Six’
- Several solutions to HDF5 error reporting in Python environment
- Ubuntu “a user name is not in the sudoer folder. It will be reported. ” Solutions for
- Django. DB. Utils. Programmingerror: (1146, “table * doesn’t exist”) causes and Solutions
- Django project running service reported an error NameError: name ‘OS’ is not defined
- Error 10002 – Security header is not valid appears on the Django Oscar page
- After Java application is deployed in Linux environment, Chinese is displayed as square solution
- django.core.exceptions . improveconfigured: error loading MySQL DB module. Django configuring MySQL database
- After the vs2013 + OpenGL environment is set up, there is an error in running the first program
- django.db.utils.OperationalError: no such table: django_admin_log
- Anaconda create environment, delete environment, activate environment, exit environment
- Virtual environment: error: virtualenv is not compatible with this system or executable
- django.core.exceptions . improverconfigured: mysqlclient 1.4.0 or new is required; you have
- Python bug: cannot install ‘Django’. It is a distutils installed project and thus we cannot
- Problem in configuring Maven error: Java_ HOME not found in your environment.
- Bug001: error in gradle configuration environment variable: ERROR:JAVA_ Home is set to an invalid directory!
- Could not find appears when JDK is configured java.dll Could not find Java se runtime environment problems
- Four ways to get Django parameters in request
- The solution to the problem is different from other solutions