conda config change default env directory

寵の児 提交于 2019-12-10 17:04:45

问题


conda create -n EvnName python=3.6 keeps installing my Env in user home instead of the env directory of my Anaconda installation /data/anaconda3/envs

conda info gives me

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 only contains:

envs_dirs:
  - /data/anaconda3/envs

The reason I always want to install the env in /data/anaconda3/envs is because we have very limited space in the home directory


回答1:


the reason the environment was installed in the user home was because of the permissions for the /data/anaconda3/envs directory, after changing that new environments install in the /data/anaconda3/envs directory



来源:https://stackoverflow.com/questions/48560402/conda-config-change-default-env-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!