conda 配置更改默认 env 目录

gal*_*den 5 conda

conda create -n EvnName python=3.6 继续在用户主目录中安装我的 Env 而不是我的 Anaconda 安装 /data/anaconda3/envs 的 env 目录

conda 信息给了我

Current conda install:

           platform : linux-64
      conda version : 4.3.30
   conda is private : False
  conda-env version : 4.3.30
conda-build version : not installed
     python version : 3.6.1.final.0
   requests version : 2.14.2
   root environment : /data/anaconda3  (read only)
default environment : /data/anaconda3
   envs directories : /data/anaconda3/envs
                      /home/tlinden/.conda/envs
      package cache : /data/anaconda3/pkgs
                      /home/tlinden/.conda/pkgs
       channel URLs : https://repo.continuum.io/pkgs/main/linux-64
                      https://repo.continuum.io/pkgs/main/noarch
                      https://repo.continuum.io/pkgs/free/linux-64
                      https://repo.continuum.io/pkgs/free/noarch
                      https://repo.continuum.io/pkgs/r/linux-64
                      https://repo.continuum.io/pkgs/r/noarch
                      https://repo.continuum.io/pkgs/pro/linux-64
                      https://repo.continuum.io/pkgs/pro/noarch
        config file : /home/tlinden/.condarc
Run Code Online (Sandbox Code Playgroud)

/home/tlinden/.condarc 仅包含:

envs_dirs:
  - /data/anaconda3/envs
Run Code Online (Sandbox Code Playgroud)

我总是想在 /data/anaconda3/envs 中安装 env 的原因是因为我们在主目录中的空间非常有限

gal*_*den 5

将环境安装在用户主目录中的原因是由于 /data/anaconda3/envs 目录的权限,在更改新环境安装在 /data/anaconda3/envs 目录中之后