Update to python3.8, how pycharm can't find a new python interpreter should be added

Beginners have just come into contact with python and pycharm, and they are always confused during the installation and configuration process. My download sequence is that I downloaded python3.7 by accident, and then downloaded it to pycharm2020.2.1. During the configuration process, I found that the python version was too low. After uninstalling, I downloaded python3.8.5 again. When everything is ready, pycharm runs an error.

Insert picture description here
It probably means that the python interpreter cannot be loaded into the system.

I found the cause of the problem. It should be that I downloaded pycharm based on the python3.7 version. After uninstalling and installing it, I need to update and add a new python3.8 interpreter.

The installation method is as follows:

  1. file> settings> Project:pythonProject> Python Interpreter> click the settings button> Add Python Interprete
    Insert picture description here
    Insert picture description here
    Insert picture description here


  2. Insert picture description here
    The path and interpreter here in Virtualenv Environment> New environment will be displayed by itself, and click OK as needed to see if it is correct.

If the prompt cannot continue, it may be caused by the default path folder is not empty, the new interpreter added here must be installed in an empty folder.
Insert picture description here
Just create an empty folder. You can add it manually in the file location, or you can change a new folder name in the path filled in by default, and it will be created automatically. Click OK after setting.

  1. After the setting is complete,
    Insert picture description here
    return to the working interface and you can continue to run with the updated python!

I hope it will be helpful to you~

Guess you like

Origin blog.csdn.net/fyyyya/article/details/108562204