Switch the pycharm compiler python3.6 and 3.7 back and forth according to different compilation environments

Problem Description:

Anaconda's python environment is python3.7, but the downloaded project requires python3.6.

solution:

Install both python3.6 and python3.7. (For example, install python3.6 on the basis of python3.7) 1. Download python3.6.6
on the official website https://www.python.org/downloads/windows/ , and open it to run after the download is complete.
insert image description here
2.pycharm adds a virtual interpreter.
1).File->settings
insert image description here
2).Open the current project in the settings interface.

insert image description here
3). Select the interpreter

insert image description here4) Select show all to add the environment you need.
insert image description here
5) Plus sign.
insert image description here
6) The installation path of python3.6.
insert image description here

insert image description here
7)!
insert image description here

Guess you like

Origin blog.csdn.net/qq_38703529/article/details/124269476