Python - How can I completely uninstall Anaconda on Windows 10?

前端 未结 3 832
温柔的废话
温柔的废话 2021-01-02 16:55

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

3条回答
  •  执笔经年
    2021-01-02 17:48

    I think this is the official solution: 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.]

    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.

    1. 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/ ]
    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.

提交回复
热议问题