Jupyter Lab無(wú)法打開(kāi)終端窗口的解決方法
錯(cuò)誤描述
本地Anaconda
使用pip install jupyterlab
后使用jupyter-lab
打開(kāi)窗口創(chuàng)建Terminal
出現(xiàn)錯(cuò)誤Launcher Error
、Unhandled error
、Dismiss
解決方案
通過(guò)查詢Anaconda
窗口信息發(fā)現(xiàn)報(bào)錯(cuò)如下:
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)報(bào)錯(cuò)的原因是JupyterLab
在創(chuàng)建Ternimal
時(shí)無(wú)法定位到PowerShell
。為此,我通過(guò)CMD
啟用PowerShell
仍然失敗,如下所示:
因此懷疑時(shí)是環(huán)境變量中缺少`PowerShell`路徑,因此我找到`PowerShell`路徑并添加至環(huán)境變量,如下所示
完成后在CMD
中輸入PowerShell
即可進(jìn)入PowerShell
模式
此時(shí)打開(kāi)Anaconda
啟動(dòng)JupyterLab
,即可正常啟動(dòng)Terminal
,如下所示:
總結(jié)
如果在Win10
平臺(tái)使用JupyterLab
無(wú)法正常啟動(dòng)Terminal
且報(bào)錯(cuò)為FileNotFoundError: The command was not found or was not executable: powershell.exe.
,只需要在環(huán)境變量中添加PowerShell
路徑
到此這篇關(guān)于Jupyter Lab無(wú)法打開(kāi)終端窗口的解決方法的文章就介紹到這了,更多相關(guān)Jupyter Lab終端窗口內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Python實(shí)現(xiàn)簡(jiǎn)單狀態(tài)框架的方法
這篇文章主要介紹了Python實(shí)現(xiàn)簡(jiǎn)單狀態(tài)框架的方法,涉及Python狀態(tài)框架的實(shí)現(xiàn)技巧,具有一定參考借鑒價(jià)值,需要的朋友可以參考下2015-03-03Python隊(duì)列Queue實(shí)現(xiàn)詳解
這篇文章主要介紹了Python隊(duì)列Queue實(shí)現(xiàn)詳解,隊(duì)列是一種列表,隊(duì)列用于存儲(chǔ)按順序排列的數(shù)據(jù),隊(duì)列是一種先進(jìn)先出的數(shù)據(jù)結(jié)構(gòu),不同的是隊(duì)列只能在隊(duì)尾插入元素,在隊(duì)首刪除元素,需要的朋友可以參考下2023-07-07Python實(shí)現(xiàn)GIF動(dòng)圖加載和降幀的方法詳解
這篇文章主要為大家詳細(xì)介紹了如何利用Python和Pygame實(shí)現(xiàn)GIF動(dòng)圖加載和降幀的效果,文中的示例代碼講解詳細(xì),感興趣的小伙伴可以了解一下2023-02-02python利用faker庫(kù)批量生成測(cè)試數(shù)據(jù)
小編經(jīng)常需要批量測(cè)試一些數(shù)據(jù),有時(shí)候測(cè)試環(huán)境又暫時(shí)沒(méi)數(shù)據(jù),特意找了一下,發(fā)現(xiàn)有一個(gè)可批量生成數(shù)據(jù)的python庫(kù)—-faker,現(xiàn)在就介紹一下它的使用方法,如果你不想一行一行輸入代碼,小編提供了完整測(cè)試代碼,見(jiàn)文末代碼章節(jié)。2020-10-10利用Python實(shí)現(xiàn)無(wú)損GIF動(dòng)圖的制作
這篇文章主要為大家詳細(xì)介紹了如何利用Python實(shí)現(xiàn)無(wú)損GIF動(dòng)圖的制作,文中的實(shí)現(xiàn)方法講解詳細(xì),對(duì)我們學(xué)習(xí)Python有一定的幫助,需要的可以參考一下2023-04-04PyTorch?Tensor創(chuàng)建實(shí)現(xiàn)
本文主要介紹了PyTorch?Tensor創(chuàng)建實(shí)現(xiàn),文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧2023-06-06Python docx庫(kù)刪除復(fù)制paragraph及行高設(shè)置圖片插入示例
這篇文章主要為大家介紹了Python docx庫(kù)刪除復(fù)制paragraph及行高設(shè)置圖片插入操作實(shí)現(xiàn)示例,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2022-07-07