简体   繁体   中英

How to idenfidy or uninstall the old Python version (invisible)?

I have installed the latest 3.8 version on my laptop and it is running pretty well. However, when I tried to identify the version installed on IDLE, it showed: import sys print(sys.version) 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)]

I have installed visual studio and have no idea if there would be any problem with the version installed, I assumed there were 2.

Thanks!

Thanks guys. Just need to delete the system PATH of the old python version. It won't installed automatically.

I see that you are running on Windows.

The short answer is that I bet that the location is somewhere around: C:\\Users\\userid\\AppData\\Local\\Programs\\Python\\

(You have to change "userid" for something appropriate)

The long answer is that you can find the answer yourself

  1. Type "IDLE" on the Start menu
  2. Right-click on the application it has found on your computer
  3. Select "Open file location" ![在“开始”菜单上键入“IDLE”。右键单击它在您的计算机上找到的应用程序。选择“打开文件位置” ] 1
  4. In the Windows explorer, right-click on the IDLE shortcut
  5. Select "Properties" 在 Windows 资源管理器中,右键单击 IDLE 快捷方式。选择“属性”
  6. At the beginning of the field "Target", you should see the location of the "pythonw.exe" file. 在“目标”字段的开头,您应该会看到“pythonw.exe”文件的位置。
  7. "python.exe" should be right beside it. “python.exe”应该就在它旁边。

You can find all the steps in here: https://imgur.com/a/AVzKIdc

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