我是靠谱客的博主 迷你大山,这篇文章主要介绍jupyter notebook中出现ValueError: signal only works in main thread 报错 即 长时间in[*] 解决办法,现在分享给大家,希望可以做个参考。
1 问题描述
最近学习 tensorflow 本来已经安装了 jupyter notebook 也运行过好几次程序,但是昨天装了一下 google-colab 之后,今天 jupyter notebook 的tensorflow 环境无法打开(没有任何响应)
(1)jupyter notebook 页面出现 “无法定位程序输入点xxxxx 动态链接库xxx上” 的问题,如图所示
(2)jupyter notebook 的后台页面也出现了 ValueError: signal only works in main thread 报错 即 jupyter notebook 运行页面长时间in[*] 而没有反映。
2 问题起因
因为装了 google-colab 所以 jupyter notebook 经过试验,最终发现是 包的版本冲突 所导致的问题。
ipykernel 、pyzmq 、tornado、notebook之间版本是有对应关系的,大家以后遇到同样的问题一定要注意。
3 解决方法
在 tensorflow 环境下的cmd命令行中输入以下两行命令,将上面的包更新至最新,即可。
pip install --upgrade tornado
pip install --upgrade ipykernel
最后
以上就是迷你大山最近收集整理的关于jupyter notebook中出现ValueError: signal only works in main thread 报错 即 长时间in[*] 解决办法的全部内容,更多相关jupyter内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复