【问题标题】:I can't even install qt locally我什至无法在本地安装 qt
【发布时间】:2021-06-07 12:02:16
【问题描述】:

这是我关于 miniconda 安装 qt 的问题。
C:\Users\wenka\miniconda3\pkgs>conda install --use-local qt-5.9.7-vc14h73c81de_0.tar.bz2 准备交易:完成 验证交易:完成 执行事务:完成 错误 conda.core.link:_execute(699):安装包“::qt-5.9.7-vc14h73c81de_0”时出错。 回滚事务:doneenter code here

enter code here

LinkError: post-link script failed for package <unknown>::qt-5.9.7-vc14h73c81de_0
location of failed script: C:\Users\wenka\miniconda3\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.

我曾尝试使用 conda install qt5.9.7 安装 qt,但失败了。

【问题讨论】:

  • 尝试找出无法识别chcp 的原因。这是 Qt 链接后脚本尝试使用的标准 DOS 命令(与语言配置有关)。也许尝试打开命令提示符并运行where chcp。您能否将conda info 的输出添加到您的问题中?

标签: anaconda conda


【解决方案1】:

在尝试设置虚拟环境时,我曾尝试过同样的问题。这对我有用: 问题可能在于您的系统变量设置不正确。 以下是您解决问题的方法:

  1. 检查您的 PATH 环境变量是否设置正确。任何系统都应该在路径上至少具有以下内容:

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

  1. 如果路径不存在,请将其添加到路径中。这应该可以解决问题

来源和更多详细信息:'chcp' is not recognized as an internal or external command, operable program or batch file. on a Windows PC

【讨论】:

    猜你喜欢
    • 2015-07-29
    • 1970-01-01
    • 2017-12-20
    • 2020-09-24
    • 2021-04-12
    • 2013-09-17
    • 1970-01-01
    • 1970-01-01
    • 2022-11-11
    相关资源
    最近更新 更多