PyCharm uses a virtual Python interpreter by default, and can run Python code even if it is not installed, but programmers with obsessive-compulsive disorder must not tolerate the existence of so many file directories in the Project

File->Settings->Project->Project Interpreter, set the locally installed Python interpreter version

When creating the project, select the existing Existing interpreter.

Now you can write Python code happily

Recommended Posts