我已经多次重新安装了所有软件包以及我的计算机,请帮助
尝试通过cmd启动Juypter Lab后,我收到以下错误:
C:\Users\user>jupyter lab
Traceback (most recent call last):
File "c:\users\user\appdata\local\programs\python\python38\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\user\appdata\local\programs\python\python38\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\user\AppData\Local\Programs\Python\Python38\Scripts\jupyter-lab.EXE\__main__.py", line 7, in <module>
File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\jupyter_core\application.py", line 268, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\traitlets\config\application.py", line 663, in launch_instance
app.initialize(argv)
File "<c:\users\user\appdata\local\programs\python\python38\lib\site-packages\decorator.py:decorator-gen-7>", line 2, in initialize
File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\traitlets\config\application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\notebook\notebookapp.py", line 1720, in initialize
self.init_webapp()
File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\jupyterlab\labapp.py", line 404, in init_webapp
super().init_webapp(*args, **kwargs)
File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\notebook\notebookapp.py", line 1482, in init_webapp
self.http_server.listen(port, self.ip)
File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\tornado\tcpserver.py", line 152, in listen
self.add_sockets(sockets)
File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\tornado\tcpserver.py", line 165, in add_sockets
self._handlers[sock.fileno()] = add_accept_handler(
File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\tornado\netutil.py", line 279, in add_accept_handler
io_loop.add_handler(sock, accept_handler, IOLoop.READ)
File "c:\users\user\appdata\local\programs\python\python38\lib\site-packages\tornado\platform\asyncio.py", line 99, in add_handler
self.asyncio_loop.add_reader(fd, self._handle_events, fd, IOLoop.READ)
File "c:\users\user\appdata\local\programs\python\python38\lib\asyncio\events.py", line 501, in add_reader
raise NotImplementedError
NotImplementedError```
答案 0 :(得分:0)
您必须首先在CMD中运行此代码
pip install jupyterlab
然后检查是否已安装Python 3,然后尝试
python3 -m pip install --upgrade pip
python3 -m pip install jupyter
在那之后键入“ jupyter笔记本”
在网站上被称为
由于JupyterLab是经典Jupyter Notebook服务器的服务器扩展,因此您可以通过调用jupyter Notebook并访问/ lab URL:http(s):///// lab
来启动JupyterLab。
它将起作用,id对我有用。
答案 1 :(得分:0)
,因为JupyterLab是传统的Jupyter Notebook服务器的服务器扩展,
您可以通过调用jupyter笔记本并访问/ lab URL来启动JupyterLab:
http(s)://<server:port>/<lab-location>/lab
。