How to change the default python version when Anaconda is installed to another version

 Method 1: Modify the command line

1. Win+R input cmd to enter the command line, enter the following code in the command line:

​​​​​​​conda activate

Enter the base version of Anaconda 

View the current python version number

python -V (注意v是大写)

2. View an optional modified version

Enter the following command:

conda search --full --name python

3. Select the version number that needs to be modified

Execute the code (this process may take a long time, please be patient)

conda install python=3.7.5

 If the waiting time is too long, you can consider the permission issue, and restart the first step as an administrator

Method 2: Anaconda.navigator modification

1. Click the environments column to find the python option, you can see that the current python version is 3.8.8

 2. Click the green hook in front of python to select the version that needs to be modified, and then click the Apply button in the lower right corner (this process can also take a long time, just wait patiently)

I use the second method

2023.5.4  18:06

to

2023.5.4  22:55

Finish;

I was about to leave the computer on standby overnight, but it took 5 hours to load successfully, which is a big surprise! ! !

Complete display 1:

 

 Result display 2:

 

Guess you like

Origin blog.csdn.net/qq_56520755/article/details/130489115