Just trying to run jupyter notebook with pip. What the hell is happening? I tried to run it like this "python -m notebook", because just "jupyter notebook" or just "notebook" doesn't even get recognized.
C:\**\**>python -m notebook
Traceback (most recent call last):
File "C:\**\**\AppData\Local\Programs\Python\Python38-32\lib\runpy.py",
line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\**\**\AppData\Local\Programs\Python\Python38-32\lib\runpy.py",
line 86, in _run_code
exec(code, run_globals)
File "C:\**\**\AppData\Local\Programs\Python\Python38-32\lib\site-packag
es\notebook\__main__.py", line 5, in <module>
app.launch_new_instance()
File "C:\**\**\AppData\Local\Programs\Python\Python38-32\lib\site-packag
es\jupyter_core\application.py", line 268, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "C:\**\**\AppData\Local\Programs\Python\Python38-32\lib\site-packag
es\traitlets\config\application.py", line 663, in launch_instance
app.initialize(argv)
File "<C:\**\**\AppData\Local\Programs\Python\Python38-32\lib\site-packa
ges\decorator.py:decorator-gen-7>", line 2, in initialize
File "C:\**\**\AppData\Local\Programs\Python\Python38-32\lib\site-packag
es\traitlets\config\application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "C:\**\**\AppData\Local\Programs\Python\Python38-32\lib\site-packag
es\notebook\notebookapp.py", line 1720, in initialize
self.init_webapp()
File "C:\**\**\AppData\Local\Programs\Python\Python38-32\lib\site-packag
es\notebook\notebookapp.py", line 1482, in init_webapp
self.http_server.listen(port, self.ip)
File "C:\**\**\AppData\Local\Programs\Python\Python38-32\lib\site-packag
es\tornado\tcpserver.py", line 152, in listen
self.add_sockets(sockets)
File "C:\**\**\AppData\Local\Programs\Python\Python38-32\lib\site-packag
es\tornado\tcpserver.py", line 165, in add_sockets
self._handlers[sock.fileno()] = add_accept_handler(
File "C:\**\**\AppData\Local\Programs\Python\Python38-32\lib\site-packag
es\tornado\netutil.py", line 279, in add_accept_handler
io_loop.add_handler(sock, accept_handler, IOLoop.READ)
File "C:\**\**\AppData\Local\Programs\Python\Python38-32\lib\site-packag
es\tornado\platform\asyncio.py", line 99, in add_handler
self.asyncio_loop.add_reader(fd, self._handle_events, fd, IOLoop.READ)
File "C:\**\**\AppData\Local\Programs\Python\Python38-32\lib\asyncio\eve
nts.py", line 501, in add_reader
raise NotImplementedError
NotImplementedError
Your local installation of jupyter via pip is conflicting with your Anaconda installation. There are some situations where you may need more than one instance of python (eg if you need to test code with different versions of python, or some applications require a separate instance, but you seem like you might want to limit your installations to just a single instance.
Remember to use environments to keep your package list clean.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.