Python 如何从 Windows 中完全删除 anaconda?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29337928/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to remove anaconda from windows completely?
提问by sci-guy
I installed Anaconda a while ago but recently decided to uninstall it and just install basic python 2.7.
我不久前安装了 Anaconda,但最近决定卸载它并只安装基本的 python 2.7。
I removed Anaconda and deleted all the directories and installed python 2.7.
我删除了 Anaconda 并删除了所有目录并安装了 python 2.7。
But when I go to install PyGTK for Windows it says it will install it to the c:/users/.../Anaconda directory- this doesn't even exist. I want to install it to the c:/python-2.7directory. Why does it think Anaconda is still installed? And how can I change this?
但是当我为 Windows 安装 PyGTK 时,它说它将安装到c:/users/.../Anaconda directory- 这甚至不存在。我想把它安装到c:/python-2.7目录中。为什么它认为仍然安装了 Anaconda?我该如何改变这一点?
采纳答案by sci-guy
Since I didn't have the uninstaller listed - the solution turned out to be to reinstall Anaconda and then uninstall it.
由于我没有列出卸载程序 - 解决方案原来是重新安装 Anaconda 然后卸载它。
回答by asmeurer
Anaconda comes with an uninstaller, which should have been installed in the Start menu.
Anaconda 附带一个卸载程序,它应该已安装在“开始”菜单中。
回答by Rafael Pacheco
In my computer there wasn't a uninstaller in the Start Menu as well. But it worked it the Control Panel > Programs > Uninstall a Program, and selecting Python(Anaconda64bits) in the menu. (Note that I'm using Win10)
在我的电脑中,开始菜单中也没有卸载程序。但是它在控制面板>程序>卸载程序中起作用,并在菜单中选择Python(Anaconda64bits)。(注意我用的是Win10)
回答by Aerylia
In the folder where you installed Anaconda (Example: C:\Users\username\Anaconda3) there should be an executable called Uninstall-Anaconda.exe. Double click on this file to start uninstall Anaconda.
在安装 Anaconda 的文件夹(示例:)中C:\Users\username\Anaconda3应该有一个名为Uninstall-Anaconda.exe. 双击该文件开始卸载 Anaconda。
That should do the trick as well.
这也应该可以解决问题。
回答by AnthonyT
If a clean re-install/uninstall did not work, this is because the Anaconda install is still listed in the registry.
如果干净的重新安装/卸载不起作用,这是因为 Anaconda 安装仍列在注册表中。
- Start -> Run -> Regedit
- Navigate to HKEY_CURRENT_USER -> Software -> Python
- You may see 2 subfolders, Anaconda and PythonCore. Expand both and check the "Install Location" in the Install folder, it will be listed on the right.
- Delete either or both Anaconda and PythonCore folders, or the entire Python folder and the Registry path to install your Python Package to Anaconda will be gone.
- 开始 -> 运行 -> 注册
- 导航到 HKEY_CURRENT_USER -> 软件 -> Python
- 您可能会看到 2 个子文件夹,Anaconda 和 PythonCore。展开两者并检查安装文件夹中的“安装位置”,它将列在右侧。
- 删除 Anaconda 和 PythonCore 文件夹中的一个或两个,或者整个 Python 文件夹和用于将 Python 包安装到 Anaconda 的注册表路径都将消失。
回答by bruce
To use Uninstall-Anaconda.exein C:\Users\username\Anaconda3is a good way.
使用Uninstall-Anaconda.exeinC:\Users\username\Anaconda3是一个好方法。
回答by sunilyadav0201
It looks that some files are still left and some registry keys are left. So you can run revocleaner tool to remove those entries as well. Do a reboot and install again it should be doing it now. I also faced issue and by complete cleaning I got Rid of it.
看起来仍然保留了一些文件,并且保留了一些注册表项。因此,您也可以运行 revocleaner 工具来删除这些条目。重新启动并再次安装它现在应该这样做。我也遇到了问题,通过彻底清洁,我摆脱了它。
回答by Jakob
I think this is the official solution: https://docs.anaconda.com/anaconda/install/uninstall/
我认为这是官方解决方案:https: //docs.anaconda.com/anaconda/install/uninstall/
[Unfortunately I did the simple remove (Uninstall-Anaconda.exe in C:\Users\username\Anaconda3 following the answers in stack overflow) before I found the official article, so I have to get rid of everything manually.]
[不幸的是,在我找到官方文章之前,我做了简单的删除(在 C:\Users\username\Anaconda3 中卸载-Anaconda.exe 在堆栈溢出的答案之后),所以我必须手动删除所有内容。]
But for the rest of you the official full removal could be interesting, so I copied it here:
但对于你们其他人来说,官方完全删除可能很有趣,所以我在这里复制了它:
To uninstall Anaconda, you can do a simple remove of the program. This will leave a few files behind, which for most users is just fine. See Option A.
If you also want to remove all traces of the configuration files and directories from Anaconda and its programs, you can download and use the Anaconda-Clean program first, then do a simple remove. See Option B.
Option A. Use simple remove to uninstall Anaconda:
- Windows–In the Control Panel, choose Add or Remove Programs or Uninstall a program, and then select Python 3.6 (Anaconda) or your version of Python.
- [... also solutions for Mac and Linux are provided here: https://docs.anaconda.com/anaconda/install/uninstall/]
Option B: Full uninstall using Anaconda-Clean and simple remove.
NOTE: Anaconda-Clean must be run before simple remove.
Install the Anaconda-Clean package from Anaconda Prompt (Terminal on Linux or macOS):
conda install anaconda-cleanIn the same window, run one of these commands:
Remove all Anaconda-related files and directories with a confirmation prompt before deleting each one:
anaconda-cleanOr, remove all Anaconda-related files and directories without being prompted to delete each one:
anaconda-clean --yesAnaconda-Clean creates a backup of all files and directories that might be removed in a folder named .anaconda_backup in your home directory. Also note that Anaconda-Clean leaves your data files in the AnacondaProjects directory untouched.
After using Anaconda-Clean, follow the instructions above in Option A to uninstall Anaconda.
要卸载 Anaconda,您可以简单地删除该程序。这将留下一些文件,这对大多数用户来说很好。见选项 A。
如果您还想从 Anaconda 及其程序中删除所有配置文件和目录的痕迹,您可以先下载并使用 Anaconda-Clean 程序,然后进行简单的删除。见选项 B。
选项 A. 使用 simple remove 卸载 Anaconda:
- Windows - 在控制面板中,选择添加或删除程序或卸载程序,然后选择 Python 3.6 (Anaconda) 或您的 Python 版本。
- [...这里还提供了适用于 Mac 和 Linux 的解决方案:https: //docs.anaconda.com/anaconda/install/uninstall/]
选项 B:使用 Anaconda-Clean 完全卸载并简单删除。
注意:Anaconda-Clean 必须在简单删除之前运行。
从 Anaconda Prompt(Linux 或 macOS 上的终端)安装 Anaconda-Clean 软件包:
conda install anaconda-clean在同一窗口中,运行以下命令之一:
在删除每个文件和目录之前,使用确认提示删除所有与 Anaconda 相关的文件和目录:
anaconda-clean或者,删除所有与 Anaconda 相关的文件和目录,而不会提示删除每个文件和目录:
anaconda-clean --yesAnaconda-Clean 为您主目录中名为 .anaconda_backup 的文件夹中可能删除的所有文件和目录创建备份。另请注意,Anaconda-Clean 不会更改 AnacondaProjects 目录中的数据文件。
使用 Anaconda-Clean 后,请按照上述选项 A 中的说明卸载 Anaconda。
回答by dfafa
Go to C:\Users\username\Anaconda3and search for Uninstall-Anaconda3.exewhich will remove all the components of Anaconda.
转到C:\Users\username\Anaconda3并搜索Uninstall-Anaconda3.exe将删除 Anaconda 的所有组件。
回答by thinktwice
On my machine (Win10), the uninstaller was located at C:\ProgramData\Anaconda3\Uninstall-Anaconda3.exe.
在我的机器 (Win10) 上,卸载程序位于C:\ProgramData\Anaconda3\Uninstall-Anaconda3.exe.

