SoFunction
Updated on 2024-10-29

Explaining pycharm configuration of python interpreter in detail

Choose which version of the interpreter to use here:

Select show all in the drop-down box to see the currently existing

Click the Add button:

The system interpreter can be selected:

It has all the python installed in the computer right now, the ones under usr/bin/python and system directory are the ones that came with the computer, and usr/local/bin/python3 is the one you installed yourself. The python3 you installed yourself is the one at the bottom, here under usr, as I understand it, is a kind of mapping. usr/local/bin/python3 is a mapping of python3 under the /Library path. Because I tried, after adding the xlrd module on the command line, using python3 under usr in pychram, the xlrd module also appears.

You can choose virtualenv Environment, this is for security reasons. You can create a new virtualenv environment and use the system python as the base interpreter, and put it in a new location. Put it in a new location, so that a project can use this new virtual environment to add modules, do some configurations and so on without affecting the system interpreter.

As shown in the figure: location select the new virtual environment to be placed there, generally default to the current project's directory, because you set up a new virtual environment, may be in order to serve the project, and then the base interpreter. select from which interpreter to inherit. You can also choose the existing environment, that is to say, the original virtual environment has been set up, and now there is a project, perhaps you can reuse the previous project's virtual environment, their configuration is almost the same, you can continue to use it.

This article on the pycharm configuration python interpreter problem is introduced to this article, more related pycharm configuration python interpreter problem content please search for my previous articles or continue to browse the following related articles I hope you will support me more in the future!