Jupyter Lab無法打開終端窗口的解決方法
錯誤描述
本地Anaconda
使用pip install jupyterlab
后使用jupyter-lab
打開窗口創(chuàng)建Terminal
出現(xiàn)錯誤Launcher Error
、Unhandled error
、Dismiss
解決方案
通過查詢Anaconda
窗口信息發(fā)現(xiàn)報錯如下:
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.
可以發(fā)現(xiàn)報錯的原因是JupyterLab
在創(chuàng)建Ternimal
時無法定位到PowerShell
。為此,我通過CMD
啟用PowerShell
仍然失敗,如下所示:
因此懷疑時是環(huán)境變量中缺少`PowerShell`路徑,因此我找到`PowerShell`路徑并添加至環(huán)境變量,如下所示
完成后在CMD
中輸入PowerShell
即可進入PowerShell
模式
此時打開Anaconda
啟動JupyterLab
,即可正常啟動Terminal
,如下所示:
總結
如果在Win10
平臺使用JupyterLab
無法正常啟動Terminal
且報錯為FileNotFoundError: The command was not found or was not executable: powershell.exe.
,只需要在環(huán)境變量中添加PowerShell
路徑
到此這篇關于Jupyter Lab無法打開終端窗口的解決方法的文章就介紹到這了,更多相關Jupyter Lab終端窗口內容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!
相關文章
python利用faker庫批量生成測試數(shù)據(jù)
小編經(jīng)常需要批量測試一些數(shù)據(jù),有時候測試環(huán)境又暫時沒數(shù)據(jù),特意找了一下,發(fā)現(xiàn)有一個可批量生成數(shù)據(jù)的python庫—-faker,現(xiàn)在就介紹一下它的使用方法,如果你不想一行一行輸入代碼,小編提供了完整測試代碼,見文末代碼章節(jié)。2020-10-10PyTorch?Tensor創(chuàng)建實現(xiàn)
本文主要介紹了PyTorch?Tensor創(chuàng)建實現(xiàn),文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧2023-06-06Python docx庫刪除復制paragraph及行高設置圖片插入示例
這篇文章主要為大家介紹了Python docx庫刪除復制paragraph及行高設置圖片插入操作實現(xiàn)示例,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪2022-07-07