conda config更改默认的env目录

时间:2018-02-01 10:24:13

标签: conda

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

conda info给我

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

/home/tlinden/.condarc只包含:

envs_dirs:
  - /data/anaconda3/envs

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

1 个答案:

答案 0 :(得分:1)

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