安装conda软件包时出错:conda.core.link:_execute(696):安装软件包'conda-forge :: qt-5.9.7-h506e8af_3'

时间:2019-08-19 20:11:26

标签: python anaconda conda

我正在尝试更新软件包,并且在此过程中,它最终停止并回滚而不进行更新。我正在尝试运行此程序(我也尝试过其他具有类似效果的软件包,例如astroML,底图,nltk等):

conda install conda --update-all

这是我得到的错误:

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

()

我已经尝试了conda.core.link:_execute(637)chcp error的答案,但是没有运气。如果我尝试通过Anaconda Navigator进行更新,看来我得到了相同的结果。感谢您在理解和解决此问题方面的帮助,谢谢!

2 个答案:

答案 0 :(得分:1)

这可能不是最实用的解决方案,但是由于您已经尝试过前面问题的答案,因此您可能只想重新安装conda。需要一段时间,但对我而言,这是唯一有效的解决方案。

不幸的是,这意味着您也将删除所有环境,因此这可能是为它们创建一个environment.yml文件的最佳时机(或者如果已经拥有它们,请拍一下它的背面)。

答案 1 :(得分:0)

我在搜寻了3个小时后曾经遇到过同样的麻烦,我找到了解决方法 由Windows管理员访问导致的所有以.qt-post-link.bat语句结尾的错误,请以管理员身份打开CMD,然后执行命令。

这是我的结果

import './App.css';
import Layout from '../Layout/Layout.js'
import AuthContext from './context/auth-context';

function App() {
  return (
      <AuthContext.Provider 
    value={updateAndRender}
    >
    <Layout />
    </AuthContext.Provider>
    );
}

export default App;