第一次开始用jupyter,折腾jupyter notebook的时候花了好长时间,好不容易通过pip install jupyter安装好了jupyter notebook打开了ipynb文件,结果出现最多的问题是ImportError: cannot import name 'XX'。。。后来又重新安装了一遍jupyter notebook,然而点击运行没有显示运行结果。。看到又博主说是因为只zhaungleupyter没有安装Notebook的原因。
行叭,我再在anaconda prompt里conda install jupyter notebook
再运行代码:ImportError: cannot import name 'create_prompt_application'
额。。。参考了这个博主的https://blog.youkuaiyun.com/qq_33716688/article/details/84630679 安装符合版本的prompt-toolkit
然后,又出现了新的问题:signal only works in main thread
嗯....参见:https://blog.youkuaiyun.com/loovelj/article/details/82184223
我再 pip install "pyzmp==17.0.0"
pip install "ipykernel==4.8.2"
再重新打开ipynb文件运行,就有运行结果啦
(在弄这个的时候真的出现了好多好多问题...比如no kernel,cannot restart...好多出现的问题记不清了。。。就暂时先记着这几个问题了(晕),先记录一下以后可能还有用,坑多不嫌累。。。)