代码改变世界

failed to install jupyter_contrib_nbextensions

2021-01-23 23:17  钱先生  阅读(295)  评论(0编辑  收藏  举报

Command executed:

 conda install -c conda-forge jupyter_contrib_nbextensions

 

Issue

ERROR conda.core.link:_execute(698): An error occurred while installing package 'conda-forge::jupyter_latex_envs-1.4.6-py38h32f6830_1001'.
Rolling back transaction: done

LinkError: post-link script failed for package conda-forge::jupyter_latex_envs-1.4.6-py38h32f6830_1001
location of failed script: C:\Users\Lenovo\anaconda3\Scripts\.jupyter_latex_envs-post-link.bat
==> script messages <==
<None>
==> script output <==
stdout:
stderr: 'chcp' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'chcp' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'chcp' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

return code: 1

 

Solution

in file jupyter_latex_envs-post-link.bat, under the @echo off (using np++)
set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;

https://github.com/ContinuumIO/anaconda-issues/issues/10949