The code in the pycharm of mac cannot change the virtual environment

I use the django project under svn to run in a virtual environment, but pycharm is still dependent on the system, which makes it impossible to use modules such as django-redis,numpy

as shown in figure

clipboard.png

clipboard.png

clipboard.png

setting:
clipboard.png

:

clipboard.png

other self-created projects do not have this problem and can be executed in a virtual environment, but this project is not. The only difference is that this project is downloaded locally using svn.

follow-up findings are not due to the fact that this is also the case with svn, ordinary python projects.

how can you solve this problem, gods?

Mar.10,2021

you can create a new env environment through the setting button on the far right of the Project Intepreter option in the second figure, in which you can set packages that do not depend on the global.


which python interpreter is the python interpreter in the manage.py running configuration?

clipboard.png

The

code hint is related to the default interpreter of your project, but whether it can be run or not depends on the interpreter of your execution file.

Menu