• jupyter notebook中出现ValueError: signal only works in main thread 报错 即 长时间in[*] 解决办法


    我在jupyter notebook中新建了一个基于py3.6的kernel用来进行tensorflow学习

    但是在jupyter notebook中建立该kernel时,右上角总是显示

    服务正在启动中,请稍候(kernel is starting,please wait)同时 kernel中显示 in[*] 表示服务一直被占用

    在cmd中发现报错

    ERROR:tornado.general:Uncaught exception in ZMQStream callback

    ……

    ValueError: signal only works in main thread

    经过试验,最终发现是包的版本冲突

    pip install "pyzmq==17.0.0" "ipykernel==4.8.2"

    执行以上后重启即可

    参考:https://blog.csdn.net/loovelj/article/details/82184223

  • 相关阅读:
    【leetcode】反转字符串
    【leetcode】反转字符串 II
    053-669
    053-668
    053-667
    053-666
    053-665
    053-664
    053-663
    053-662
  • 原文地址:https://www.cnblogs.com/cyrio/p/10078630.html
Copyright © 2020-2023  润新知