简体   繁体   English

安装 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'

I'm trying to update packages, and I'm as it goes through the process it eventually stops and rolls back without updating.我正在尝试更新软件包,并且在整个过程中它最终会停止并回滚而不更新。 I'm trying to run this (I've also tried with other packages like astroML, basemap, nltk, etc with similar effect):我正在尝试运行它(我也尝试过使用其他包,如 astroML、basemap、nltk 等,具有类似的效果):

conda install conda --update-all

And this is the error I'm getting:这是我得到的错误:

Preparing transaction: done
Verifying transaction: done
Executing transaction: | b'Enabling notebook extension jupyter-js-widgets/extens
ion...\n      - Validating: ok\n'
done
ERROR conda.core.link:_execute(696): An error occurred while installing package
'conda-forge::qt-5.9.7-h506e8af_3'.
Rolling back transaction: done

LinkError: post-link script failed for package conda-forge::qt-5.9.7-h506e8af_3
location of failed script: C:\Users\Mike\Anaconda3\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

()

I've already tried out answers for conda.core.link:_execute(637) and the chcp error with no luck.我已经尝试过conda.core.link:_execute(637)chcp 错误的答案, 没有运气。 If I try to update through the Anaconda Navigator it looks like I'm getting the same results.如果我尝试通过 Anaconda Navigator 进行更新,看起来我得到了相同的结果。 I appreciate any help in understanding and resolving this issue, thanks!感谢您在理解和解决此问题方面的任何帮助,谢谢!

It might not be the most practical solution, but since you already tried the answers from the previous questions, you might just want to re-install conda.这可能不是最实用的解决方案,但由于您已经尝试了之前问题的答案,您可能只想重新安装 conda。 It takes a while, but for me that was the only fix that worked.这需要一段时间,但对我来说,这是唯一有效的修复方法。

Unfortunately that means that you'll remove all your environments as well, so this might be the perfect time to create an environment.yml file for them (or pat yourself on the back if you already have them).不幸的是,这意味着您也将删除所有环境,因此这可能是为它们创建 environment.yml 文件的最佳时机(或者如果您已经拥有它们,请拍拍自己的背)。

i once faced same trouble after 3 hours googling i found the solution every error which end with statement .qt-post-link.bat it caused by the windows administrator access, so open your CMD as an administrator and then execute the command.我曾经在谷歌搜索 3 小时后遇到同样的问题,我找到了解决方案,每个错误都以语句 .qt-post-link.bat 结尾,它是由 Windows 管理员访问引起的,因此以管理员身份打开您的 CMD,然后执行命令。

here my result这是我的结果

C:\Users\muham\Documents\xxx\python\sample_project>conda install numpy matplotlib scikit-learn pandas
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\Users\xxx\miniconda3

  added / updated specs:
    - matplotlib
    - numpy
    - pandas
    - scikit-learn

lz4-c              pkgs/main/win-64::lz4-c-1.9.2-hf4a77e7_3
  matplotlib         pkgs/main/win-64::matplotlib-3.3.2-0
  matplotlib-base    pkgs/main/win-64::matplotlib-base-3.3.2-py38hba9282a_0
  mkl                pkgs/main/win-64::mkl-2020.2-256
  mkl-service        pkgs/main/win-64::mkl-service-2.3.0-py38h2bbff1b_0
  mkl_fft            pkgs/main/win-64::mkl_fft-1.2.0-py38h45dec08_0
  mkl_random         pkgs/main/win-64::mkl_random-1.1.1-py38h47e9c7a_0
  numpy              pkgs/main/win-64::numpy-1.19.2-py38hadc3359_0
  numpy-base         pkgs/main/win-64::numpy-base-1.19.2-py38ha3acd2a_0
  olefile            pkgs/main/noarch::olefile-0.46-py_0
  pandas             pkgs/main/win-64::pandas-1.1.3-py38ha925a31_0
  pillow             pkgs/main/win-64::pillow-8.0.1-py38h4fa10fc_0
  pytz               pkgs/main/noarch::pytz-2020.1-py_0
  scikit-learn       pkgs/main/win-64::scikit-learn-0.23.2-py38h47e9c7a_0
  scipy              pkgs/main/win-64::scipy-1.5.2-py38h14eb087_0
  threadpoolctl      pkgs/main/noarch::threadpoolctl-2.1.0-pyh5ca1d4c_0
  tk                 pkgs/main/win-64::tk-8.6.10-he774522_0
  xz                 pkgs/main/win-64::xz-5.2.5-h62dcd97_0
  zstd               pkgs/main/win-64::zstd-1.4.5-h04227a9_0


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

C:\Users\muham\Documents\cxxx\python\sample_project>

暂无
暂无

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

相关问题 错误 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(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 错误 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错误:`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(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.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(701):更新 conda 包时出错 - ERROR conda.core.link:_execute(701): An error occured while updating conda packages 安装conda-forge mlxtend-安装mlxtend时出错-权限被拒绝 - Install conda-forge mlxtend - Error in installing mlxtend - Permission Denied Conda 软件包安装 [Errno 13] 安装 conda-forge::protobuf-3.8.0 时权限被拒绝 - Conda package install [Errno 13] Permission denied while installing conda-forge::protobuf-3.8.0 使用conda安装python包时,没有更新就出错了 - While installing python package using conda, an error occurred without updating
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM