Where does Anaconda Python install on Windows?

前端 未结 10 890
庸人自扰
庸人自扰 2020-12-07 15:18

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 Anac

10条回答
  •  时光说笑
    2020-12-07 15:51

    conda info will display information about the current install, including the active env location which is what you want.

    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
    

    If your shell/prompt complains that it cannot find the command, it likely means that you installed Anaconda without adding it to the PATH environment variable.

    If that's the case find and open the Anaconda Prompt and do it from there.

    Alternatively reinstall Anaconda choosing to add it to the PATH. Or add the variable manually.

    Anaconda Prompt should be available in your Start Menu (Win) or Applications Menu (macos)

提交回复
热议问题