anaconda 3 目录在卸载后仍然存在。

huangapple go评论53阅读模式
英文:

anaconda 3 directory remains after uninstall

问题

请注意,根据Anaconda文档的建议,我已删除ANACONDA3\envsANACONDA3\pkgs。Anaconda目录的内容如下:

C:\Users\u03132tk>cd C:\ANACONDA3

C:\ANACONDA3>dir
 Volume in drive C is OS
 Volume Serial Number is 0C73-2057

 Directory of C:\ANACONDA3

15/06/2023  11:23    <DIR>          .
15/06/2023  11:23    <DIR>          ..
15/06/2023  11:12    <DIR>          conda-meta
15/06/2023  11:09    <DIR>          DLLs
15/06/2023  11:12    <DIR>          etc
15/06/2023  11:12    <DIR>          include
15/06/2023  11:09    <DIR>          Lib
15/06/2023  11:12    <DIR>          Library
15/06/2023  11:12    <DIR>          libs
08/09/2020  18:10            27,936 msvcp140_codecvt_ids.dll
08/03/2023  18:51         4,490,240 python39.dll
08/03/2023  18:51        13,668,352 python39.pdb
15/06/2023  11:12    <DIR>          Scripts
24/05/2023  13:51    <DIR>          share
15/06/2023  11:23    <DIR>          tcl
24/05/2023  13:10    <DIR>          Tools
08/09/2020  18:10            44,328 vcruntime140_1.dll
08/03/2023  18:40           524,800 venvlauncher.exe
08/03/2023  18:40           524,288 venvwlauncher.exe
24/10/2022  15:04            87,552 zlib.dll
               7 File(s)     19,367,496 bytes
              13 Dir(s)  14,452,559,872 bytes free

原始信息已翻译完毕。

英文:

EDIT

Please note I deleted ANACONDA3\envs and ANACONDA3\pkgs as per anaconda docs linked in main answer. Contents of Anaconda directory:

C:\Users\u03132tk>cd C:\ANACONDA3

C:\ANACONDA3>dir
 Volume in drive C is OS
 Volume Serial Number is 0C73-2057

 Directory of C:\ANACONDA3

15/06/2023  11:23    <DIR>          .
15/06/2023  11:23    <DIR>          ..
15/06/2023  11:12    <DIR>          conda-meta
15/06/2023  11:09    <DIR>          DLLs
15/06/2023  11:12    <DIR>          etc
15/06/2023  11:12    <DIR>          include
15/06/2023  11:09    <DIR>          Lib
15/06/2023  11:12    <DIR>          Library
15/06/2023  11:12    <DIR>          libs
08/09/2020  18:10            27,936 msvcp140_codecvt_ids.dll
08/03/2023  18:51         4,490,240 python39.dll
08/03/2023  18:51        13,668,352 python39.pdb
15/06/2023  11:12    <DIR>          Scripts
24/05/2023  13:51    <DIR>          share
15/06/2023  11:23    <DIR>          tcl
24/05/2023  13:10    <DIR>          Tools
08/09/2020  18:10            44,328 vcruntime140_1.dll
08/03/2023  18:40           524,800 venvlauncher.exe
08/03/2023  18:40           524,288 venvwlauncher.exe
24/10/2022  15:04            87,552 zlib.dll
               7 File(s)     19,367,496 bytes
              13 Dir(s)  14,452,559,872 bytes free

Original message:

After having dependency issues, I decided to delete and re-install anaconda3. I followed the instructions here (full uninstall --> simple remove - I am on Windows 10). In add or remove programs, I uninstalled both anaconda 3 and then Python 3 (I had installed python 3 externally to conda - I now know this was a terrible idea). I also uninstalled Python Launcher. I now want to re-install anaconda 3, but the anaconda 3 directory is still on my computer (C:\ANACONDA3 - it is 1.62 GB).

I am not sure why it was not removed - is it safe to simply delete it? I suspect that having two copies of Anaconda3 hanging around would be even worse than having multiple Python versions, so would like to be sure before I do anything.

Thanks!
Tim

答案1

得分: 0

删除 ANACONDA3 文件夹通常是安全的,因为 conda 会将独立的环境安装到您的系统中。

要确保从您的系统完全删除 conda,您需要确保它从您的 PATH 环境变量中删除。

要这样做,请按照以下步骤操作:

  1. 在桌面上右键单击 计算机此电脑 图标,然后选择 属性
  2. 单击左侧应该显示的 高级系统设置 链接。
  3. 系统属性 > 高级 > 环境变量
    anaconda 3 目录在卸载后仍然存在。
  4. 删除任何与 conda 相关的 变量:值

如果 OP 在安装 anaconda 时仍然遇到问题,您可以选择通过 MiniForge 安装一个精简版本,作为 Anaconda 的社区版本替代品,精简安装程序跳过了与 Anaconda 一起提供的软件包。

安装完成后,运行:

conda create -n firstEnv python=3.11 ipython 来安装 Python 3.11

  • 将 firstEnv 替换为您的环境名称,将 3.11 替换为所需的 Python 版本

然后通过 pip installconda install 安装必要的软件包。

愉快的编程!

英文:

Removing the ANACONDA3 folder is generally safe as conda installs isolated environments to your system

To ensure conda is completely removed from your system, you will need to make sure its removed from your PATH environment variables

To do so, follow these steps:

  1. right-click on the Computer or This PC icon on the desktop and select Properties
  2. Advanced system settings link which should appear on the left-hand side.
  3. System Properties > Advanced > Environment Variables
    anaconda 3 目录在卸载后仍然存在。
  4. Delete any conda related Variable:Value pair

If OP still runs into issue with anaconda installation, you can choose to install a minimal version via MiniForge for the community version replacement of Anaconda, the minimal installer skips packages which come with Anaconda.

After installation, run:

conda create -n firstEnv python=3.11 ipython to install python 3.11

  • replace firstEnv with your environment name and 3.11 to desired python version

And install necessary packages via pip install and conda install

Happy coding!

huangapple
  • 本文由 发表于 2023年6月15日 12:27:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/76479115.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定