Python - 如何在 Windows 10 上完全卸载 Anaconda?
问题描述
由于某种原因,我安装的 Anaconda 出现了问题.当我尝试打开 Jupyter 时,我注意到了这一点.开始菜单快捷方式已损坏.当我点击它时,我得到了一个臭名昭著的命令行窗口的打开和关闭.我可以通过单击可执行文件来启动它,但这最终会导致笔记本在我无法移出的奇怪位置打开.
My installation of Anaconda has gone sideways for some reason. I noticed it when I tried to open Jupyter. The start menu shortcut was broken. When I clicked on it, I got the infamous opening and closing of a command line window. I can start it by clicking on the executable but this winds up with the notebook opening in a weird location that I can't move out of.
当我尝试卸载并重新安装时,我的行为与以前相同.我做了一些谷歌搜索,发现了一些像这样的 Stackoverflow 问题(我已经丢失了,所以无法发布链接),但是当我按照提供的解决方案进行操作时,我得到的只是更多.我认为可能需要从 appdata 中删除某些内容,但这似乎也无法解决问题.
When I try to uninstall and reinstall, I get the same behavior as before. I did some googling and found some Stackoverflow questions like this (which I've since lost so can't post the link), but when I followed the solutions offered, I just get more of the same. I thought there might be something that needed to be blown away from appdata but that didn't seem to fix the issue either.
解决方案
我正在运行 Windows 10 Pro Version 1703 OS Build 15063.786.我不确定 Windows 更新是否是导致问题的原因.最终,所有的捷径都指向了不再存在的东西.我执行了以下任务.
I'm running Windows 10 Pro Version 1703 OS Build 15063.786. I'm not sure if a Windows update is what caused the issue. Ultimately, all the shortcuts were pointing to things that no longer existed. I performed the following task.
- 使用标准 Windows 卸载过程卸载 Anaconda.
- 重启.
- 搜索整个硬盘,寻找与 Anaconda 安装远程相关的任何内容,然后手动将其删除.我不记得所有确切的文件夹,但我确实记得在 C:UsersBob 中,有一个 .Anaconda 和一个 .IPython 和一个 .Jupyter 文件.所有这些都必须离开.还必须手动删除 C:UsersBobAnaconda3 以及一些刚刚挂在 C:ProgramDataAnaconda3 中但以某种方式拒绝删除的文件.
- 手动删除 C:ProgramDataMicrosoftWindowsStart MenuProgramsAnaconda3(64 位)中的快捷方式.
- 重启.
- 重新安装 Anaconda.
- 重启.
一切恢复正常.特别感谢 sytech.检查环境变量并没有提供解决方案,但它让我走上了正确的调查轨道.
Everything is back to normal. Special thanks to sytech. Checking the environment variables didn't provide a solution but it put me on the right investigative track.
相关文章