python3.8-运行jupyter 报raise NotImplementedError

最近安装了python3.8 并安装jupyter,运行时却提示NotImplementedError,很崩溃

经过多次查证 貌似是3.8版本的bug...(这么牛逼的问题,被我遇到了。),不过网络上还是有真大神的。分享下这个连接,有兴趣可以看一下。

https://github.com/jupyter/notebook/issues/4613

方法如下:以我的系统为例,找到C:\Users\xxx\AppData\Local\Programs\Python\Python38\Lib\site-packages\tornado\platform\asyncio.py 这个文件,打开将下边这句编辑进去,保存。

import asyncio
import sys
if sys.platform == 'win32' and sys.version_info > (3, 8, 0, 'alpha', 3) :
    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

 

 在运行jupyter notebook,就可以运行成功。开心。

 

 转自我的知乎 https://zhuanlan.zhihu.com/p/89888038   欢迎大家批评指正

posted @ 2020-07-04 11:40  采采芣苢_薄言襭之  阅读(333)  评论(0编辑  收藏  举报