【发布时间】:2020-02-13 19:06:15
【问题描述】:
最近升级到 Python 3.8,并安装了jupyter。但是,当尝试运行jupyter notebook 时出现以下错误:
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
我知道 Windows 上的 Python 3.8 默认切换到 ProactorEventLoop,所以我怀疑它与此有关。
Jupyter 目前不支持 Python 3.8?有解决办法吗?
【问题讨论】:
-
Python 3.8 非常新鲜,所以最好回到 3.7 并等待一段时间,直到它得到更好的测试,并且专门为 3.8 创建模块。
-
在 3.8.1(今天发布)中仍然存在问题。
-
这个问题现在在 jupyter notebook 的 6.0.3 版本中得到修复。使用
pip install notebook --upgrade升级
标签: python windows jupyter-notebook tornado