Anaconda Python 在 Windows 上安装在哪里?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/37117571/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 18:53:16  来源:igfitidea点击:

Where does Anaconda Python install on Windows?

pythonwindowsanacondapydev

提问by Semicolons and Duct Tape

I installed Anaconda for Python 2.7 on my Windows machine and wanted to add the Anaconda interpreter to PyDev, but quick googling couldn't find the default place where Anaconda installed, and searching SO didn't turn up anything useful, so.

我在我的 Windows 机器上安装了 Python 2.7 的 Anaconda 并想将 Anaconda 解释器添加到 PyDev,但快速谷歌搜索找不到安装 Anaconda 的默认位置,搜索 SO 没有发现任何有用的东西,所以。

Where does Anaconda 4.0 install on Windows 7?

Anaconda 4.0 在 Windows 7 上安装在哪里?

回答by Semicolons and Duct Tape

To find where Anaconda was installed I used the "where" command on the command line in Windows.

为了找到 Anaconda 的安装位置,我在 Windows 的命令行上使用了“where”命令。

C:\>where anaconda

which for me returned:

这对我来说返回了:

C:\Users\User-Name\AppData\Local\Continuum\Anaconda2\Scripts\anaconda.exe

C:\Users\User-Name\AppData\Local\Continuum\Anaconda2\Scripts\anaconda.exe

Which allowed me to find the Anaconda Python interpreter at

这让我可以在以下位置找到 Anaconda Python 解释器

C:\Users\User-Name\AppData\Local\Continuum\Anaconda2\python.exe

C:\Users\User-Name\AppData\Local\Continuum\Anaconda2\python.exe

to update PyDev

更新 PyDev

回答by u2gilles

Open the Anaconda Prompt and type:

打开 Anaconda Prompt 并输入:

> where python

回答by Rusty

You can search for "Anaconda prompt" in installed programs and run it.
When it opens, it shows the directory anaconda is working from.
enter image description here

您可以在已安装的程序中搜索“Anaconda prompt”并运行它。
当它打开时,它会显示 anaconda 正在工作的目录。
在此处输入图片说明

As you can see c:\programdata\anaconda2 is my installed directory.
*side note: programdata folder is hidden in windows so you'll have to enter its path in the folder explorer to access it.

如您所见, c:\programdata\anaconda2 是我的安装目录。
*旁注:programdata 文件夹隐藏在 Windows 中,因此您必须在文件夹资源管理器中输入其路径才能访问它。

回答by qqqqq

If you installed as admin ( and meant for all users )

如果您以管理员身份安装(并且适用于所有用户)

C:\ProgramData\Anaconda3\Scripts\anaconda.exe

If you install as a normal user

如果您以普通用户身份安装

C:\Users\User-Name\AppData\Local\Continuum\Anaconda2\Scripts\anaconda.exe

回答by chatzich

where conda

where conda

F:\Users\christos\Anaconda3\Library\bin\conda.bat

F:\Users\christos\Anaconda3\Library\bin\conda.bat

F:\Users\christos\Anaconda3\Scripts\conda.exe

F:\Users\christos\Anaconda3\Scripts\conda.exe

F:\Users\christos\Anaconda3\condabin\conda.bat

F:\Users\christos\Anaconda3\condabin\conda.bat

F:\Users\christos\Anaconda3\Scripts\conda.exe --version

F:\Users\christos\Anaconda3\Scripts\conda.exe --version

conda 4.6.11

康达 4.6.11

this worked for me

这对我有用

回答by Ali Ismayilov

This one is easy. When you start the installation, Anaconda asks "Destination Folder" as below screenshot. If you are not sure where did default installation go, double click setup file and see what anaconda offers as a default location.
Anaconda image

这个很容易。当您开始安装时,Anaconda 会询问“目标文件夹”,如下图所示。如果您不确定默认安装在哪里,请双击安装文件并查看 anaconda 提供的默认位置。
蟒蛇图像

回答by fivef

C:\Users\<Username>\AppData\Local\Continuum\anaconda2

For me this was the default installation directory on Windows 7. Found it via Rusy's answer

对我来说,这是 Windows 7 上的默认安装目录。通过Rusy 的回答找到它

回答by SteakOverflow

conda infowill display information about the current install, including the active env locationwhich is what you want.

conda info将显示有关当前安装的信息,包括您想要的活动环境位置

Here's my output:

这是我的输出:

(base) C:\Users\USERNAME>conda info

     active environment : base
    active env location : C:\ProgramData\Miniconda3
            shell level : 1
       user config file : C:\Users\USERNAME\.condarc
 populated config files :
          conda version : 4.8.2
    conda-build version : not installed
         python version : 3.7.6.final.0
       virtual packages : __cuda=10.2
       base environment : C:\ProgramData\Miniconda3  (read only)
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\ProgramData\Miniconda3\pkgs
                          C:\Users\USERNAME\.conda\pkgs
                          C:\Users\USERNAME\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\USERNAME\.conda\envs
                          C:\ProgramData\Miniconda3\envs
                          C:\Users\USERNAME\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.8.2 requests/2.22.0 CPython/3.7.6 Windows/10 Windows/10.0.18362
          administrator : False
             netrc file : None
           offline mode : False

回答by Amir

With Anaconda prompt python is available, but on any other command window, python is an unknown program. Apparently Anaconda installation does not update the path for python executable.

使用 Anaconda 提示 python 可用,但在任何其他命令窗口中,python 是一个未知程序。显然 Anaconda 安装不会更新 python 可执行文件的路径。

回答by sk23

Update May 2020, installed Anaconda 3 Individual Edition from https://www.anaconda.com/products/individual, chose 32-bit installer for Python 3.7, and installed with Default options.

2020 年 5 月更新,从https://www.anaconda.com/products/individual安装了 Anaconda 3 Individual Edition ,为 Python 3.7 选择了 32 位安装程序,并使用默认选项安装。

enter image description here

在此处输入图片说明

Here is the directory where Anaconda was installed (C:\ProgramData\Anaconda3). Note ProgramData is a hidden folder not visible via Windows File Explorer. enter image description here

这是 Anaconda 的安装目录(C:\ProgramData\Anaconda3)。注意 ProgramData 是一个隐藏文件夹,无法通过 Windows 文件资源管理器看到。 在此处输入图片说明

And launching Anaconda command prompt from Start Menu>>Anaconda3 gives below command shell

并从开始菜单>>Anaconda3 启动 Anaconda 命令提示符给出以下命令外壳

enter image description here

在此处输入图片说明

"where anaconda" command gives below output C:\ProgramData\Anaconda3\Scripts\anaconda.exe and versions for anaconda, conda, python enter image description here

where anaconda”命令给出以下输出 C:\ProgramData\Anaconda3\Scripts\anaconda.exe 和 anaconda、conda、python 的版本 在此处输入图片说明

Updated original question which was asked 3 years ago, and is relevant today as well in May 2020 as I had similar question/doubt when installing Anaconda recently.

更新了 3 年前提出的原始问题,并且在 2020 年 5 月与今天相关,因为我最近在安装 Anaconda 时遇到了类似的问题/疑问。