1. 程式人生 > 其它 >執行jupyter一直顯示“*”,執行不出結果

執行jupyter一直顯示“*”,執行不出結果

技術標籤:anacondapythonbug

執行jupyter一直顯示“*”,執行不出結果,報錯資訊如下:“signal only works in main thread”
在這裡插入圖片描述

原因可能是自己前幾天安裝了goole.colab包,查閱資料顯示結果是pyzmq和ipykernel兩個包的版本安裝不對。

於是參照網上的改法,在命令列中輸入以下程式碼即可:

pip install "pyzmq==18.0.0" -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install "ipykernel==4.8.2" -i https://pypi.tuna.tsinghua.edu.cn/simple