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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM