简体   繁体   English

错误 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

I wanted to install the matplotlib package using conda.我想使用 conda 安装 matplotlib 包。

The actual result was the following:实际结果如下:

ERROR conda.core.link:_execute(699): An error occurred while installing package 'defaults::qt-5.9.7-vc14h73c81de_0'.

I expected successful installation of matplotlib, so that I could run it on my jupyter notebook.我希望能成功安装 matplotlib,这样我就可以在我的 jupyter 笔记本上运行它。

I used the following command for installing the package:我使用以下命令安装软件包:

conda install matplotlib

here is the error that I got:这是我得到的错误:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
ERROR conda.core.link:_execute(699): An error occurred while installing package 'defaults::qt-5.9.7-vc14h73c81de_0'.
Rolling back transaction: done

LinkError: post-link script failed for package defaults::qt-5.9.7-vc14h73c81de_0
location of failed script: C:\Users\Asus\Desktop\env\Scripts\.qt-post-link.bat
==> script messages <==
<None>
==> script output <==
stdout:         1 file(s) copied.

stderr: 'chcp' is not recognized as an internal or external command,
operable program or batch file.
'chcp' is not recognized as an internal or external command,
operable program or batch file.
'chcp' is not recognized as an internal or external command,
operable program or batch file.

return code: 1

()

Please help me with this, as I'm able to install other packages like pandas, numpy, etc, but its happening only in the case of matplotlib package.请帮我解决这个问题,因为我可以安装其他包,如 pandas、numpy 等,但它只发生在 matplotlib 包的情况下。 Thank you.谢谢你。

Never seen this error before but did you try installing matplotlib via conda while in admin mode?以前从未见过此错误,但您是否尝试在管理员模式下通过 conda 安装 matplotlib?

To do that open your code editor as admin.为此,请以管理员身份打开您的代码编辑器。 This usually opens it with additional saving rights if your target download location (most of the time the sidepackages folder of your used environment) is behind a security-rule to prevent unauthorized saving to that location.如果您的目标下载位置(大多数情况下,您使用的环境的 sidepackages 文件夹)位于安全规则之后,则这通常会以额外的保存权限打开它,以防止未经授权的保存到该位置。

Speaking of which this could also be caused by breaking your package dependencies.说到这也可能是由于破坏了您的包依赖项引起的。 Did you activate a virtual environment before starting to code?您在开始编码之前是否激活了虚拟环境? A virtual env is good for saving you a lot of trouble to keep track of dependencies and packages possibly changing theirs causing your code to break when you update.虚拟环境可以为您省去很多麻烦来跟踪依赖项和包,这些依赖项和包可能会更改它们,从而在您更新时导致代码中断。

I have experimented the same issue before while attempting to install a different package.我之前在尝试安装不同的软件包时曾尝试过同样的问题。 The problem lies with your System variables, which have been set incorrectly.问题在于您的系统变量设置不正确。 Here is how you solve the issue:以下是您解决问题的方法:

  1. Check if your PATH environment variable is setup properly.检查您的 PATH 环境变量是否设置正确。 Any system should have atleast the below on Path:任何系统都应至少在路径上具有以下内容:

%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;

  1. Add it to Path if it is not there.如果它不存在,则将其添加到 Path 中。 This should fix the issue这应该可以解决问题

Source & more details here: 'chcp' is not recognized as an internal or external command, operable program or batch file.来源和更多细节在这里: 'chcp' 不是内部或外部命令,也不是可运行的程序或批处理文件。 on a Windows PC 在 Windows PC 上

I solved this by我解决了这个问题

conda clean --all

after that, reinstall the package之后,重新安装包

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误 conda.core.link:_execute(700): 安装 package 'defaults::qt-5.9.7-vc14h73c81de_0' 时出错 - ERROR conda.core.link:_execute(700): An error occurred while installing package 'defaults::qt-5.9.7-vc14h73c81de_0' 错误 conda.core.link:_execute(699): 安装包 &#39;defaults::openssl-1.1.1l-h2bbff1b_0&#39; 时出错 - ERROR conda.core.link:_execute(699): An error occurred while installing package 'defaults::openssl-1.1.1l-h2bbff1b_0' 安装 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(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错误:`conda.core.link:_execute(637):安装包&#39;None&#39;时发生错误。 Asse田()` - Conda error on update: `conda.core.link:_execute(637): An error occurred while installing package 'None'. AssertionError()` 错误 conda.core.link:_execute(502): 安装包 &#39;conda-forge::astor-0.7.1-py_0&#39; 时出错 - ERROR conda.core.link:_execute(502): An error occurred while installing package 'conda-forge::astor-0.7.1-py_0' 错误 conda.core.link:_execute(701):更新 conda 包时出错 - ERROR conda.core.link:_execute(701): An error occured while updating conda packages 克隆 conda env 失败:错误 conda.core.link:_execute(543) - Cloning conda env fails: error conda.core.link:_execute(543) 如何处理“ ERROR conda.core.link:_execute_actions(337)”? - How to handle “ERROR conda.core.link:_execute_actions(337)”? python-docx 不会安装 ERROR conda.core.link:_execute(700) - python-docx won't install ERROR conda.core.link:_execute(700)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM