简体   繁体   English

当安装程序不起作用时,如何正确卸载/修复 python 3.8.5?

[英]How do I properly uninstall/fix python 3.8.5 when the installer doesn't work?

After messing up my pip installation (I interrupted an update), I tried reinstalling python, but it didn't fix pip. After trying to uninstall python and re-install it manually, the installer just simply won't work for 3.8.5.在弄乱我的 pip 安装后(我中断了更新),我尝试重新安装 python,但它没有修复 pip。在尝试卸载 python 并手动重新安装后,安装程序根本无法用于 3.8.5 . After removing all python directories (to my knowledge), it still shows up in control panel, and the installer sees it, but can't uninstall it.删除所有 python 目录后(据我所知),它仍然出现在控制面板中,安装程序可以看到它,但无法卸载它。 All it says is "uninstall successful".它只说“卸载成功”。 Older versions would not install as they detect an existing installation.旧版本不会安装,因为它们检测到现有安装。

The files I've removed:我删除的文件:

%programfiles%\python %programfiles%\python
%appdata%\python %appdata%\python
%userprofile%\local\programs\python %userprofile%\local\programs\python
%userprofile%\local\programs\pip %userprofile%\local\programs\pip

I have also removed python from path, and the registry entry.我还从路径和注册表项中删除了 python。
For any more information, feel free to comment.如需更多信息,请随时发表评论。

Thanks in advance提前致谢

I had to remove the registry key from我不得不从中删除注册表项

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall

with information from this article .这篇文章的信息。 Then I brought up the uninstaller prompt again, which still showed the "Modify, Repair & Uninstall" options from earlier, but I right-clicked the icon on the taskbar (When a program is open) and clicked on properties, finding the path to that executable:然后再次弹出卸载程序提示,仍然显示之前的“修改,修复和卸载”选项,但我右键单击任务栏上的图标(当程序打开时)并单击属性,找到路径该可执行文件:

%userprofile%\AppData\Local\Package Cache\{de694e50-e0d0-48a5-9a7a-56fd037154e2}

I deleted that file, and then when I clicked "uninstall" in control panel again, it said if I'd like to remove it from the program list as it couldn't find it.我删除了那个文件,然后当我再次点击控制面板中的“卸载”时,它说如果我想从程序列表中删除它,因为它找不到它。

After that, the installer now can't see Python installed.之后,安装程序现在看不到已安装 Python。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法从终端 window 运行 Python 程序,我该如何解决? (Windows 10、Python 版本 3.8.5) - Can't run Python programs from the terminal window, how do I fix this? (Windows 10, Python version 3.8.5) 如何从 Web 平台安装程序卸载 python? - How do I uninstall python from web platform installer? Python 3.8.5 安装在 MacOS 上,但 python --version 返回 2.7.16 -- 我该如何解决这个问题? - Python 3.8.5 installed on MacOS but python --version returns 2.7.16 -- How do I fix this? 当我从VBA运行Python脚本时不起作用,但是当我从Spyder运行它时它起作用了,我该如何解决呢? - When I run Python script from VBA it doesn't work but when I run it from Spyder it does work, how do I fix this? 为什么我的 python pandas Z6A8064B5DF4794555500553C47C55057DZ 条带方法不适用于尾随空格? 我该如何解决? - why doesn't my python pandas dataframe strip method work for trailing whitespace? and how do I fix it? 我的代码不起作用,我该如何解决? - My Code just doesn't work, how do I fix it? 如何修复 python 3.8.5。 错误“导入错误:无法从‘io’(未知位置)导入名称‘open_code’” - How do I fix python 3.8.5. error "ImportError: cannot import name 'open_code' from 'io' (unknown location)" 我如何在 Windows 10 上为 python 3.8.5 安装 pyaudio - how do i install pyaudio on windows ten for python 3.8.5 使用鼠标右键>>在此处命令提示符后执行脚本时,Python无法正常工作 - Python doesn't work properly when I execute a script after using Right Click >> Command Prompt Here 为什么我翻译成Python的Haskell不能正常工作? - Why doesn't this Haskell I translated to Python work properly?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM