gpt4 book ai didi

python - Jupyterhub-错误 :asyncio:Task exception was never retrieved

转载 作者:行者123 更新时间:2023-12-05 08:06:45 31 4
gpt4 key购买 nike

我无法使用 pip 安装 Jupyterhub。我尝试重新安装,但无论如何,我仍然收到 asyncio 错误。

知道我做错了什么吗?

[root@localhost bin]# which python3
/usr/bin/python3
[root@localhost bin]# which python
/usr/bin/python
[root@localhost bin]# python3 -V
Python 3.6.8
[root@localhost bin]# python -V
Python 2.7.5

所以我正在使用 pip 安装 JH,我省略了大部分要求

[root@localhost bin]# pip3 install jupyterhub
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting jupyterhub
Using cached https://files.pythonhosted.org/packages/0d/67/c1e7d691bcb635fcde61c544d8fbca1edebb7bb4f68f34f5de291eba02d0/jupyterhub-1.0.0-py3-none-any.whl
Requirement already satisfied: prometheus-client>=0.0.21 in /usr/local/lib/python3.6/site-packages (from jupyterhub)
Requirement already satisfied: alembic in /usr/local/lib/python3.6/site-packages (from jupyterhub)
.
.
.
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /usr/local/lib64/python3.6/site-packages (from cryptography>=2.8->pyopenssl->certipy>=0.1.2->jupyterhub)
Requirement already satisfied: pycparser in /usr/local/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.8->cryptography>=2.8->pyopenssl->certipy>=0.1.2->jupyterhub)
Installing collected packages: jupyterhub
Successfully installed jupyterhub-1.0.0

已安装可配置代理

[root@localhost bin]# configurable-http-proxy -V
4.2.0

但 Jupyterhub 仍然没有进展

[root@localhost bin]# jupyterhub -V
1.0.0
ERROR:asyncio:Task exception was never retrieved
future: <Task finished coro=<JupyterHub.launch_instance_async() done, defined at /usr/local/lib/python3.6/site-packages/jupyterhub/app.py:2477> exception=SystemExit(0,)>
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/jupyterhub/app.py", line 2492, in launch_instance
loop.start()
File "/usr/local/lib64/python3.6/site-packages/tornado/platform/asyncio.py", line 148, in start
self.asyncio_loop.run_forever()
File "/usr/lib64/python3.6/asyncio/base_events.py", line 438, in run_forever
self._run_once()
File "/usr/lib64/python3.6/asyncio/base_events.py", line 1451, in _run_once
handle._run()
File "/usr/lib64/python3.6/asyncio/events.py", line 145, in _run
self._callback(*self._args)
File "/usr/local/lib/python3.6/site-packages/jupyterhub/app.py", line 2479, in launch_instance_async
await self.initialize(argv)
File "/usr/local/lib/python3.6/site-packages/jupyterhub/app.py", line 2085, in initialize
super().initialize(*args, **kwargs)
File "</usr/local/lib/python3.6/site-packages/decorator.py:decorator-gen-2>", line 2, in initialize
File "/usr/local/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/traitlets/config/application.py", line 297, in initialize
self.parse_command_line(argv)
File "</usr/local/lib/python3.6/site-packages/decorator.py:decorator-gen-4>", line 2, in parse_command_line
File "/usr/local/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/traitlets/config/application.py", line 532, in parse_command_line
self.exit(0)
File "/usr/local/lib/python3.6/site-packages/traitlets/config/application.py", line 654, in exit
sys.exit(exit_status)
SystemExit: 0
[root@localhost bin]#

最佳答案

你的 python env 包括 jupyterlab 吗? pip 安装 jupyterlab。

关于python - Jupyterhub-错误 :asyncio:Task exception was never retrieved,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58980963/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com