如需轉發,請注明出處:小婷兒的python https://www.cnblogs.com/xxtalhr/p/10739036.html
一、報錯
jupyter notebook能打開目錄頁,但是打不開ipynb文件,頁面報錯 500 : Internal Server Error
二、辦法
卸載jupyter(本人用命令pip uninstall jupyter卸載后,還是報錯,有殘留文件)。此方法太溫柔,徹底解決方法如下:
- 直接刪除Anaconda3-5.2.0-Windows-x86_64\Lib\site-packages文件夾下所有jupyter開頭的文件(下圖選中的所有文件)。
- 再次安裝執行命令:pip install jupyter
- 打開jupyter notebook,點擊ipynb文件可正常運行。
注:最后發現是因為安裝jupyter_contrib_nbextensions此擴展時遺留的問題,只要裝對了能正常使用Code prettify模塊,就不會有500報錯,或者卸載jupyter_contrib_nbextensions擴展相關包,也不會報錯。
Successfully !!!還不來加我,瞅什么瞅。

