?=错误描述
本地anaconda
使用Pip install JupyterLab
后使用juPyter-lab
打开窗口创建Terminal
出现错误Launcher Error
、Unhandled error
、DIsmiss
解决方案
Traceback (most recent call last): File "e:\anaConda3.envs\PyTorch1.6.0\lib\site-packages\tornado\Web.py", line 1702, in _executeresult = method(*self.path_args, **self.path_kwargs) File "e:\anaconda3\enVS\pytorch1.6.0\lib\site-packages\tornado\web.py", line 3173, in wrapperreturn method(self, *args, **kwargs) File "e:\anaconda3\envs\Pytorch1.6.0\lib\site-packages\jupyter_server\terminal\API_handlers.py", line 26, in Postname, _ = self.terminal_manager.new_named_terminal(**data) File "e:\anaconda3\envs\pytorch1.6.0\lib\site-packages\terminado\management.py", line 319, in new_named_terminalterm = self.new_terminal(**kwargs) File "e:\anaconda3\envs\pytorch1.6.0\lib\site-packages\terminado\management.py", line 171, in new_terminalpty = PtyPROCessUnicode.spawn(argv, env=env, cwd=optiONs.Get('cwd', none)) File "e:\anaconda3\envs\pytorch1.6.0\lib\site-packages\winpty\ptyprocess.py", line 89, in spawn'executable: %s.' % command FilenotFoundError: The command was not found or was not executable: powerShell.exe.
可以发现报错的原因是JupyterLab
在创建Ternimal
时无法定位到Powershell
。为此,我通过CMD
启用PowerShell
仍然失败,如下所示:
因此怀疑时是环境变量中缺少`PowerShell`路径,因此我找到`PowerShell`路径并添加至环境变量,如下所示
完成后在CMD
中输入PowerShell
即可进入PowerShell
模式
此时打开Anaconda
启动JupyterLab
,即可正常启动Terminal
,如下所示:
总结
如果在Win10
平台使用JupyterLab
无法正常启动Terminal
且报错为FileNotFoundError: The command was not found or was not executable: powershell.exe.
,只需要在环境变量中添加PowerShell
路径
到此这篇关于Jupyter Lab无法打开终端窗口的解决方法的文章就介绍到这了,更多相关Jupyter Lab终端窗口内容请搜索云初冀北以前的文章或继续浏览下面的相关文章希望大家以后多多支持云初冀北!
$
还没有评论,来说两句吧...