简体   繁体   中英

Adding python into path

I am trying to add a new version of python-(python3.8.2) instead of python(3.7)- into the path,but when i try to run python in cmd it ran 3.7 so I uninstalled it then this happened, what can I do to run the new version of python in cmd m 在此处输入图像描述

2 ways:

  1. If you want to keep both versions then just use py-launcher ie, type "py -3.7" or "py -.38" in cmd to run respective python versions.
  2. Remove the path of the python version you don't want.

Currently most probably your python 3.7 version's.exe file is not removed and the path still exists in the Environment Variables just remove the path from there.

For Win 10:

1) Open System Properties - right click Computer in the start menu

2) Click Advanced system settings in the sidebar

3) Click Environment Variables

4) Select PATH in the System variables section and click Edit

5) Find and replace the path of python(3.7) from there with (python3.8.2)

Done

Try reinstalling python 3.8 again and see if it works, i think it will edit and change to the correct path

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM