How to install two versions of Python to avoid conflicts

I downloaded the 32-bit python3.7.2 in the C drive before, and I already have pip, now I want to download the 64-bit python3.7.6, how can I avoid conflicts when calling Python or pip?

There are two ways

First

When installing a new python, check Add to environment variables, check Install pip, and then choose the new location you want to install.

After the installation is complete, my python and pip paths are:
Insert picture description here
Insert picture description here
and the previous version of python is the default installation path and pip path
Insert picture description here
Insert picture description here
. There are two versions of python and both have pip. The following is to modify the environment variables to avoid calling conflicts

Open as shown below
Insert picture description here

Insert picture description here

Editing the Path variable Insert picture description here
We found that there are two versions of python paths. In this arrangement, when we enter pip or python related operations on the command line, the system will first search from the path at the top position. That is to say, the previous version of python and pip will be called first.
Insert picture description here
Insert picture description here
We only need to put the two paths of the new version at the top. At this time, try calling through the command line and find that the newly installed pyhton and pip are now being called .
Insert picture description here
Insert picture description here
Or simply remove the original path from the variable.

Another way is to rename, please refer to

https://blog.csdn.net/qq_27089287/article/details/79114441
Author: pySVN8A

Guess you like

Origin blog.csdn.net/SingDanceRapBall/article/details/105496819