我正在尝试通过Anaconda为Python创建一个新环境。但是错误不断出现:
Solving environment: failed
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
OSError: [Errno 122] Disk quota exceeded
我正在使用以下句子创建新环境:
conda create --name cpost python=2.7 numpy=1.9
我知道这可能与工作目录有关,该工作目录的磁盘配额确实受到限制。因此,我将Anaconda目录完全复制到了较大的磁盘配额目录中,并尝试再次创建。出现相同的错误。在检查错误信息时,我注意到以下几行:
$ /nuist/u/home/liangxz/anaconda3/bin/conda create --name cpost python=2.7 numpy=1.9`
environment variables:
CIO_TEST=<not set>
CONDA_ROOT=/nuist/u/home/liangxz/anaconda3
MODULEPATH=/nuist/p/public/app/Modules/modulefiles/app:/nuist/p/public/app/Module
s/modulefiles/compiler:/nuist/p/public/app/Modules/modulefiles/lib:/nu
ist/p/public/app/Modules/modulefiles/mpi
PATH=/nuist/u/home/liangxz/anaconda3/bin:/nuist/p/public/intel/compilers_an
d_libraries_2018.0.128/linux/bin/intel64:/nuist/p/public/intel/compile
rs_and_libraries_2018.0.128/linux/mpi/intel64/bin:/nuist/p/public/pgi/
linux86-64/17.10/bin:/nuist/p/public/pgi/linux86-64/17.10/bin:/opt/xca
t/bin:/opt/xcat/sbin:/opt/xcat/share/xcat/tools:/usr/lib64/qt-3.3/bin:
/opt/confluent/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/
opt/ibutils/bin:/usr/lpp/mmfs/bin:/root/bin:/opt/pbs/default/bin:/nuis
t/u/home/liangxz/.local/bin:/nuist/u/home/liangxz/bin
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
active environment : None
user config file : /nuist/u/home/liangxz/.condarc
populated config files :
conda version : 4.5.4
conda-build version : 3.10.5
python version : 3.6.5.final.0
base environment : /nuist/u/home/liangxz/anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/linux-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/linux-64
https://repo.anaconda.com/pkgs/pro/noarch
package cache : /nuist/u/home/liangxz/anaconda3/pkgs
/nuist/u/home/liangxz/.conda/pkgs
envs directories : /nuist/u/home/liangxz/anaconda3/envs
/nuist/u/home/liangxz/.conda/envs
platform : linux-64
user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Linux/3.10.0-514.el7.x86_64 centos/7 glibc/2.17
UID:GID : 1135:1135
netrc file : None
offline mode : False
我意识到“用户配置文件”为/nuist/u/home/liangxz/.condarc
,而“基本环境”为"/nuist/u/home/liangxz/anaconda3 (writable)"
,这意味着即使我将anaconda复制到较大的配额目录,即“可写目录”,并没有更改,而是保留了小配额目录。(/nuist/u/home/liangxz/
是小配额目录)
因此,我的问题是如何将“基本环境”和“ envs目录”更改为所需的较大配额目录?我可以通过一些固定装置直接更改它吗?还是必须在更大的目录中再次安装Anaconda?