在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
问题解决