Python-如何在Windows 10上完全卸载Anaconda?

2024-04-16 05:22:40 发布

您现在位置:Python中文网/ 问答频道 /正文


Tags: python
3条回答

在Windows“控制面板”中,单击“添加或删除程序”

我正在运行Windows10Pro版本1703OS版本15063.786。我不确定是不是Windows更新导致了这个问题。最终,所有的捷径都指向了不再存在的东西。我完成了以下任务。

  1. 使用标准的Windows卸载过程卸载Anaconda。
  2. 重新启动。
  3. 搜索整个硬盘寻找任何远程相关的Python安装和手动删除它。我不记得所有确切的文件夹,但我记得特别是在C:\Users\Bob中,有一个.Anaconda和一个.IPython以及一个.Jupyter文件。所有这些都得走了。C: \Users\Bob\Anaconda3还必须手动删除一些文件,这些文件刚刚挂在C:\ ProgramData\Anaconda3中,但不知何故拒绝删除。
  4. 手动删除C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anaconda3(64位)中的快捷方式。
  5. 重新启动。
  6. 重新安装水蟒。
  7. 重新启动。

一切都恢复正常了。特别感谢sytech。检查环境变量并没有提供解决方案,但它让我走上了正确的调查轨道。

我认为这是官方的解决方案:https://docs.anaconda.com/anaconda/install/uninstall/

[不幸的是,在找到正式文章之前,我做了简单的删除操作(Uninstall-Anaconda.exe,在C:\ Users\username\Anaconda3中,遵循堆栈溢出中的答案),所以我必须手动删除所有内容。]

但对于你们其他人来说,正式的完全删除可能很有趣,所以我把它复制到这里:

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.

  1. Option A. Use simple remove to uninstall Anaconda:

  2. 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-clean
      
    • In the same window, run one of these commands:

      • Remove all Anaconda-related files and directories with a confirmation prompt before deleting each one:

        anaconda-clean
        
      • Or, remove all Anaconda-related files and directories without being prompted to delete each one:

        anaconda-clean --yes
        

      Anaconda-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.

相关问题 更多 >