Jupyter Notebook内部服务器错误

时间:2017-01-27 00:54:36

标签: anaconda jupyter

我刚刚在OSX El Capitan上安装了Anaconda和Jupyter Notebook,用于关于udacity的数据科学课程。我能够在网络浏览器中启动笔记本电脑就好了,但是当我点击conda标签(或尝试通过笔记本中的内核选项卡查看我的conda软件包)时,我收到一条消息“尝试使用内部服务器错误检索已安装的包“。在控制台中,错误消息如下所示 [E 17:46:45.657 NotebookApp] Unhandled error in API request Traceback (most recent call last): File "/Users/jryandx/anaconda/lib/python3.5/site-packages/notebook/base/handlers.py", line 503, in wrapper result = yield gen.maybe_future(method(self, *args, **kwargs)) File "/Users/jryandx/anaconda/lib/python3.5/site-packages/nb_conda/handlers.py", line 62, in get self.finish(json.dumps(self.env_manager.env_packages(env))) File "/Users/jryandx/anaconda/lib/python3.5/site-packages/nb_conda/envmanager.py", line 124, in env_packages "packages": [pkg_info(package) for package in data] File "/Users/jryandx/anaconda/lib/python3.5/site-packages/nb_conda/envmanager.py", line 124, in <listcomp> "packages": [pkg_info(package) for package in data] File "/Users/jryandx/anaconda/lib/python3.5/site-packages/nb_conda/envmanager.py", line 16, in pkg_info name, version, build = s.rsplit('-', 2) AttributeError: 'dict' object has no attribute 'rsplit' [E 17:46:45.658 NotebookApp] { "X-Requested-With": "XMLHttpRequest", "Cookie": "_xsrf=2|b81d482d|babef5398d3f91ba9f50d8af2710ce57|1485475524; username-localhost-8888=\"2|1:0|10:1485477133|23:username-localhost-8888|44:MmYxMzY5YTU3M2Q1NDMwM2FlMTg3MzI3NzNkNjI2MjY=|820c4e0cb74c40724977f6035ca0f9028dce07ad780ddc8c9b92548b016e3e4d\"", "Accept-Language": "en-US,en;q=0.8", "Host": "localhost:8888", "Connection": "keep-alive", "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36", "Accept": "application/json, text/javascript, */*; q=0.01", "Accept-Encoding": "gzip, deflate, sdch, br", "Referer": "http://localhost:8888/notebooks/Untitled.ipynb" }

我真的不知道问题是什么。我在网上搜索过但找不到与我的具体问题相关的任何内容。

1 个答案:

答案 0 :(得分:1)

升级到conda 4.3.8 / python 3.6有助于: conda tab在Jupyter中消失,但你有conda-prompt或Anaconda Navigator