如何将水蟒从窗户上完全移走?

2024-04-20 05:09:15 发布

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

我刚才安装了Anaconda,但最近决定卸载它,只安装基本的python 2.7。

我删除了Anaconda并删除了所有目录,安装了python 2.7。

但是当我去安装PyGTK for Windows时,它说它会把它安装到c:/users/.../Anaconda directory中——这根本不存在。我想把它安装到c:/python-2.7目录。为什么它认为水蟒仍然被安装?我该怎么改变呢?


Tags: 目录forwindowsanacondausersdirectorypygtk水蟒
3条回答

在安装Anaconda的文件夹中(例如:C:\Users\username\Anaconda3),应该有一个名为Uninstall-Anaconda.exe的可执行文件。双击此文件开始卸载Anaconda。

这也应该能起到作用。

在我的电脑里,“开始”菜单中也没有卸载程序。但它的工作原理是控制面板“程序”卸载程序,然后在菜单中选择Python(Anaconda64bits)。 (请注意,我正在使用Win10)

我认为这是官方的解决方案: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.

相关问题 更多 >