简体   繁体   English

克隆 conda env 失败:错误 conda.core.link:_execute(543)

[英]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 icuicu的版本在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.

相关问题 更新时的Conda错误:`conda.core.link:_execute(637):安装包'None'时发生错误。 Asse田()` - Conda error on update: `conda.core.link:_execute(637): An error occurred while installing package 'None'. AssertionError()` 错误 conda.core.link:_execute(701):更新 conda 包时出错 - ERROR conda.core.link:_execute(701): An error occured while updating conda packages 如何处理“ ERROR conda.core.link:_execute_actions(337)”? - How to handle “ERROR conda.core.link:_execute_actions(337)”? 错误 conda.core.link:_execute(502): 安装包 'conda-forge::astor-0.7.1-py_0' 时出错 - ERROR conda.core.link:_execute(502): An error occurred while installing package 'conda-forge::astor-0.7.1-py_0' python-docx 不会安装 ERROR conda.core.link:_execute(700) - python-docx won't install ERROR conda.core.link:_execute(700) Julia 中的 PyCall 构建错误和 conda.core.link 错误 - PyCall Build Error and conda.core.link Error in Julia 安装 conda 包时出错:conda.core.link:_execute(696):安装包“conda-forge::qt-5.9.7-h506e8af_3”时出错 - Error installing conda packages: conda.core.link:_execute(696): An error occurred while installing package 'conda-forge::qt-5.9.7-h506e8af_3' 错误 conda.core.link:_execute(699): 安装包 'defaults::openssl-1.1.1l-h2bbff1b_0' 时出错 - ERROR conda.core.link:_execute(699): An error occurred while installing package 'defaults::openssl-1.1.1l-h2bbff1b_0' 错误 conda.core.link:_execute(698):安装包“defaults::icu-58.2-ha925a31_3”时出错 - ERROR conda.core.link:_execute(698): An error occurred while installing package 'defaults::icu-58.2-ha925a31_3' 错误 conda.core.link:_execute(699): 安装包“defaults::qt-5.9.7-vc14h73c81de_0”时出错。 回滚事务:完成 - ERROR conda.core.link:_execute(699): An error occurred while installing package 'defaults::qt-5.9.7-vc14h73c81de_0'. Rolling back transaction: done
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM