[英]Cloning conda env fails: error conda.core.link:_execute(543)
I'm trying to clone a conda
environment in order to use it on a new machine.我正在尝试克隆
conda
环境以便在新机器上使用它。 On first machine:在第一台机器上:
conda-env export -n dvina > dvina.yml
On target machine:在目标机器上:
conda-env create -n dvina -f=dvina.yml
This fails with error conda.core.link:_execute(543)
.这失败并出现错误
conda.core.link:_execute(543)
。 Searching reveals numerous posts with conda.core.link
, but none with 543
.搜索显示了许多带有
conda.core.link
帖子,但没有带有543
帖子。 This is the the bash shell output from the target machine:这是目标机器的 bash shell 输出:
$ conda-env create -n dvina -f=dvina.yml
Collecting package metadata: done
Solving environment: done
Downloading and Extracting Packages
numpy-base-1.15.4 | 4.2 MB | ##################################### | 100%
mkl_random-1.0.2 | 383 KB | ##################################### | 100%
mkl_fft-1.0.6 | 191 KB | ##################################### | 100%
gcc_linux-64-7.3.0 | 10 KB | ##################################### | 100%
pytz-2018.7 | 248 KB | ##################################### | 100%
gxx_linux-64-7.3.0 | 9 KB | ##################################### | 100%
graphite2-1.3.12 | 106 KB | ##################################### | 100%
ca-certificates-2018 | 124 KB | ##################################### | 100%
libcurl-7.62.0 | 517 KB | ##################################### | 100%
python-dateutil-2.7. | 274 KB | ##################################### | 100%
intel-openmp-2019.1 | 885 KB | ##################################### | 100%
gfortran_linux-64-7. | 9 KB | ##################################### | 100%
libgcc-7.2.0 | 304 KB | ##################################### | 100%
pandas-0.23.4 | 10.0 MB | ##################################### | 100%
numpy-1.15.4 | 47 KB | ##################################### | 100%
mkl-2019.1 | 204.6 MB | ##################################### | 100%
curl-7.62.0 | 143 KB | ##################################### | 100%
six-1.12.0 | 22 KB | ##################################### | 100%
openbabel-2.4.1 | 5.1 MB | ##################################### | 100%
binutils_linux-64-2. | 9 KB | ##################################### | 100%
libpng-1.6.35 | 335 KB | ##################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: failed
ERROR conda.core.link:_execute(543): An error occurred while installing package 'defaults::icu-58.2-h9c2bf20_1'.
IsADirectoryError(21, 'Is a directory')
Attempting to roll back.
Rolling back transaction: done
[Errno 21] Is a directory: '/home/mheller/anaconda3/pkgs/icu-58.2-h9c2bf20_1/lib/icu/current'
Both machines are running Ubuntu;两台机器都运行Ubuntu; the source machine 16.04.2, the target machine 16.04.5.
源机器 16.04.2,目标机器 16.04.5。 I've updated conda on both:
conda update -n base conda -c anaconda
.我已经更新了 conda:
conda update -n base conda -c anaconda
。
A folder called dvina
is created, but only contains a folder conda-meta
with json
files.创建了一个名为
dvina
的文件夹,但仅包含一个带有json
文件的文件夹conda-meta
。
As a note, this happens on two machines with Ubuntu 16.04.5, but works if I clone an environment on the source machine itself with Ubuntu 16.04.2.需要注意的是,这发生在两台装有 Ubuntu 16.04.5 的机器上,但如果我在装有 Ubuntu 16.04.2 的源机器上克隆一个环境,这种情况会发生。 Also, I observe the same behavior if I try to create a new environment from scratch, but only on the Ubuntu 16.04.5 machines.
此外,如果我尝试从头开始创建新环境,我会观察到相同的行为,但仅在 Ubuntu 16.04.5 机器上。 My understanding is that I cannot roll back to Ubuntu 16.04.2, so how can I solve this issue from the
conda
side?我的理解是我无法回滚到 Ubuntu 16.04.2,那么如何从
conda
方面解决这个问题?
TL;DR:特尔;博士:
use conda install icu -c conda-forge
first.首先使用
conda install icu -c conda-forge
。
Hey, friends, I have been troubled by this problem for months.嘿,朋友们,我被这个问题困扰了几个月。 Today it comes up again and I decided to solve it.
今天它又出现了,我决定解决它。
I think it may be a bug of icu
side.我认为这可能是
icu
方面的一个错误。 I have seen the problem several times, and it all happens when installing icu = 58.2-h9c2bf20_1
.我已经多次看到这个问题,这一切都发生在安装
icu = 58.2-h9c2bf20_1
。
Guess what?你猜怎么着? When I tried a new version of
icu
, it is solved!当我尝试了新版本的
icu
,它解决了!
I use the following command:我使用以下命令:
conda install icu -c conda-forge
The version of icu
in conda-forge
is about 60+
, and it can be installed without pain. conda-forge
icu
中icu
的版本在60+
左右,可以无痛安装。
After installing icu
, then I continue to install other packages, and it works!安装
icu
,我继续安装其他软件包,它可以工作!
Hope it works for you :)希望这对你有用 :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.