目录
错误描述
本地anaconda
使用pip install jupyterlab
后使用jupyter-lab
打开窗口创建terminal
出现错误launcher error
、unhandled error
、dismiss
kb88凯时官网登录的解决方案
通过查询anaconda
窗口信息发现报错如下:
traceback (most recent call last):
file "e:\anaconda3\envs\pytorch1.6.0\lib\site-packages\tornado\web.py", line 1702, in _execute
result = method(*self.path_args, **self.path_kwargs)
file "e:\anaconda3\envs\pytorch1.6.0\lib\site-packages\tornado\web.py", line 3173, in wrapper
return method(self, *args, **kwargs)
file "e:\anaconda3\envs\pytorch1.6.0\lib\site-packages\jupyter_server\terminal\api_handlers.py", line 26, in post
name, _ = 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_terminal
term = self.new_terminal(**kwargs)
file "e:\anaconda3\envs\pytorch1.6.0\lib\site-packages\terminado\management.py", line 171, in new_terminal
pty = 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
路径