mac 下用chrome瀏覽器打開jupyter notebook 出現dead kernel問題

在terminal 下運行 jupyter notebook, 隨後在chrome下打開一個py文件,

瀏覽器下出現“The kernel has died, and the automatic restart has failed”對話框,

terminal 下出現/Users/thisuser/anaconda/bin/python: No module named ipykernel_launcher


問題出現的原因是 ipykernel的版本太老了,或者之前安裝其他python版本的時候,有衝突的 ipykernel_launcher


所以通過upgrade ipykernel


terminal 輸入

for python 2.    sudo pip install --upgrade ipykernel


for python 3.    sudo pip3 install --upgrade ipykernel


問題解決


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章