stderr:'chcp' 不是内部或外部命令,也不是可运行程序或批处理文件

stderr:'chcp' 不是内部或外部命令,也不是可运行程序或批处理文件

我正在尝试安装英特尔 DC 到 edge 课程所需的依赖项。在创建环境时

C:\Geth\DC to Edge Course\Notebooks>conda env create -f environment.yml
Collecting package metadata (repodata.json): done
Solving environment: done
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
ERROR conda.core.link:_execute(700): 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\Palash\Anaconda3\envs\Taco\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

()

但这不起作用,所以我做了一个解决方法,创建了一个环境“Intel_dc2edge”,然后尝试用以下代码更新它,结果是-

  (Intel_dc2edge) C:\Geth\DC to Edge Course\Notebooks>conda env update --prefix ./env --file environment.yml
Collecting package metadata (repodata.json): done
Solving environment: done
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
ERROR conda.core.link:_execute(700): 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:\Geth\DC to Edge Course\Notebooks\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

()

我认为这显然是路径问题,查找了 chcp.com 文件,发现它存在于 Windows System32 中。

这是我的系统中的环境变量列表

我按照 JosefZ 的建议这样做了

这是建议

相关内容