前輩們下午好,
小弟目前在windows 10 安裝jupyter lab的插件時都會出現UnicodeError
小弟都在CMD使用jupyter labextension install {插件} 來安裝插件
可是都跳出
UnicodeDecodeError: 'cp950' codec can't decode byte 0xe2 in position 268: illegal multibyte sequence
用"jupyter labextension install {插件} --debug"來看出錯誤的地方都是在跑
"node c:\python37\lib\site-packages\jupyterlab\staging\yarn.js run build:prod:minimize"這串指令時出現錯誤
log:
node c:\python37\lib\site-packages\jupyterlab\staging\yarn.js run build:prod:minimize
Traceback (most recent call last):
File "c:\python37\lib\site-packages\jupyterlab\debuglog.py", line 47, in debug_logging
yield
File "c:\python37\lib\site-packages\jupyterlab\labextensions.py", line 105, in start
command=command, app_options=app_options)
File "c:\python37\lib\site-packages\jupyterlab\commands.py", line 460, in build
command=command, clean_staging=clean_staging)
File "c:\python37\lib\site-packages\jupyterlab\commands.py", line 657, in build
ret = self._run(['node', YARN_PATH, 'run', command], cwd=staging)
File "c:\python37\lib\site-packages\jupyterlab\commands.py", line 1752, in _run
return proc.wait()
File "c:\python37\lib\site-packages\jupyterlab\commands.py", line 107, in wait
out, _ = proc.communicate(timeout=.1)
File "c:\python37\lib\subprocess.py", line 964, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
File "c:\python37\lib\subprocess.py", line 1317, in _communicate
stdout = stdout[0]
IndexError: list index out of range
Exiting application: jupyter
python版本:3.7.8
node版本:12.18.2.
npm版本:6.14.5
jupyter-notebook版本:6.0.3
jupyter-lab版本:2.1.5
請問前輩們有碰過這個問題嗎?
有嘗試過:npm set unicode false 可是沒有效果...