在我的根环境中运行
$ jupyter notebook
然后在浏览器中单击“Conda”选项卡。这总是用来列出我的 conda 环境和其中的包。现在我收到以下错误。
我最近创建和删除了一些 conda 环境,这可能是相关的。唯一的控制台输出是
[W 10:30:20.948 NotebookApp] 404 GET /environments?_=1476811818902 (::1) 13.19ms referer=http://localhost:8888/tree
[W 10:30:20.951 NotebookApp] 404 GET /packages/available?_=1476811818903 (::1) 1.77ms referer=http://localhost:8888/tree
最佳答案
看到这个问题: https://github.com/Anaconda-Platform/nb_conda/issues/23
问题似乎是 conda 环境中的笔记本配置文件与用户目录中的配置文件之间存在冲突。
为了解决这个问题并让标签正确显示内容,我不得不删除该文件:
rm jupyter_notebook_config.json 在 ~/.jupyter
请注意,对我而言,这不是问题,因为它实际上不包含任何内容。
关于python - Jupyter conda 选项卡 'An error occurred while retrieving package information.',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40114639/