伤心,电脑上的jupyter notebook不知道为什么不能用了,我就尝试重装,结果装了一天才装好,这个问题网上资料不多,希望各位避坑
常规安装jupyter notebook
pip install jupyter notebook -i https://mirrors.ustc.edu.cn/pypi/web/simple/
修改默认工作空间和启动浏览器就不说了,我之前写过
执行命令完毕之后,输入jupyter notebook,倒是可以启动,但是cmd界面第一行就显示error什么什么,没拍照,所以没法展示了
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
这是我搜索过的一个错误。
最后那些英文的意思是说找不到ipyparallel
最后最后,通过执行conda install -c conda-forge notebook ipyparallel该命令解决问题
如果你的notebook使用时还出现了
[W 19:36:58.721 NotebookApp] Config option `template_path` not recognized by `ExporterCollapsibleHeadings`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:58.731 NotebookApp] Config option `template_path` not recognized by `ExporterCollapsibleHeadings`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:58.777 NotebookApp] Config option `template_path` not recognized by `TocExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:58.786 NotebookApp] Config option `template_path` not recognized by `TocExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:58.807 NotebookApp] Config option `template_path` not recognized by `LenvsHTMLExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:58.818 NotebookApp] Config option `template_path` not recognized by `LenvsHTMLExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:58.841 NotebookApp] Config option `template_path` not recognized by `LenvsTocHTMLExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:58.851 NotebookApp] Config option `template_path` not recognized by `LenvsTocHTMLExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:58.902 NotebookApp] Config option `template_path` not recognized by `LenvsLatexExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:58.910 NotebookApp] Config option `template_path` not recognized by `LenvsLatexExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:59.117 NotebookApp] Config option `template_path` not recognized by `LenvsSlidesExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:59.127 NotebookApp] Config option `template_path` not recognized by `LenvsSlidesExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:59.222 NotebookApp] Config option `template_path` not recognized by `ExporterCollapsibleHeadings`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:59.233 NotebookApp] Config option `template_path` not recognized by `ExporterCollapsibleHeadings`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:59.280 NotebookApp] Config option `template_path` not recognized by `TocExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:59.289 NotebookApp] Config option `template_path` not recognized by `TocExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:59.308 NotebookApp] Config option `template_path` not recognized by `LenvsHTMLExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:59.321 NotebookApp] Config option `template_path` not recognized by `LenvsHTMLExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:59.346 NotebookApp] Config option `template_path` not recognized by `LenvsTocHTMLExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:59.358 NotebookApp] Config option `template_path` not recognized by `LenvsTocHTMLExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:59.408 NotebookApp] Config option `template_path` not recognized by `LenvsLatexExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:59.416 NotebookApp] Config option `template_path` not recognized by `LenvsLatexExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:59.624 NotebookApp] Config option `template_path` not recognized by `LenvsSlidesExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
[W 19:36:59.633 NotebookApp] Config option `template_path` not recognized by `LenvsSlidesExporter`. Did you mean one of: `extra_template_paths, template_name, template_paths`?
类似这样的错误,请执行pip install nbconvert==5.6.1 -i https://pypi.mirrors.ustc.edu.cn/simple
降低一个包的版本就可以正常运行了
我只有最后运行成功的截图
如果你的notebok最后运行是这个样子,没有提示其他error,那你就解决了所有问题。如果你有其他jupyter notebook的问题,我相信留言,我应该能解决
(这篇文章写的不是那么详细,估计只有报错,搜索和我类似的错误时能看到我的文章)