我通过网络浏览器在本地运行Anaconda3.每次我去"Conda"部分看到安装的软件包(在http:// localhost:8888/tree #conda)我得到An error occurred while retrieving installed packages. Internal Server Error
.
检查日志,这是目前正在发生的事情.有任何想法吗?
[E 13:53:08.195 NotebookApp] 500 GET /conda/environments/root?_=1484574786374 (127.0.0.1) 760.41ms referer=http://localhost:8888/tree? [E 13:53:14.557 NotebookApp] Unhandled error in API request Traceback (most recent call last): File "/root/anaconda3/lib/python3.5/site- packages/notebook/base/handlers.py", line 503, in wrapper result = yield gen.maybe_future(method(self, *args, **kwargs)) File "/root/anaconda3/lib/python3.5/site-packages/nb_conda/handlers.py", line 62, in get self.finish(json.dumps(self.env_manager.env_packages(env))) File "/root/anaconda3/lib/python3.5/site-packages/nb_conda/envmanager.py", line 124, in env_packages "packages": [pkg_info(package) for package in data] File "/root/anaconda3/lib/python3.5/site-packages/nb_conda/envmanager.py", line 124, in"packages": [pkg_info(package) for package in data] File "/root/anaconda3/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 13:53:14.558 NotebookApp] { "Accept-Language": "en-US,en;q=0.8,es;q=0.6", "Connection": "keep-alive", "X-Requested-With": "XMLHttpRequest", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36", "Accept-Encoding": "gzip, deflate, sdch, br", "Cookie": "_xsrf=2|0e84028c|becasdfafdssffjkafdsjkf473451bfcb|1484574343; username-localhost-8888=\"2|1:0|10:1484574347|23:username-localhost-8888|44:ODBlMWE5Mjk1MjRiNDNmNDhkZTVkNTU5MGI3NTNmNDQ=|83dad5a9e1aa2da460539882d41f5b3a7ac93163dab3b324526b730be88d7d69\"", "Referer": "http://localhost:8888/tree?", "Host": "localhost:8888", "Accept": "application/json, text/javascript, */*; q=0.01" } [E 13:53:14.559 NotebookApp] 500 GET /conda/environments/root?_=1484574792779 (127.0.0.1) 750.79ms referer=http://localhost:8888/tree?
小智.. 7
也许这应该是一个评论,但我没有足够的声誉.
这是nb_conda中报告的错误.conda的包信息输出的格式已经改变,nb_conda必须进行调整.已经有一个拉取请求可以修复此问题,但我无法在任何渠道中找到更改.
安装分支包括修复程序现在有帮助:
pip install git+https://github.com/Anaconda-Platform/nb_conda.git@d488d9e --upgrade
这--upgrade
是可选的,我需要它,因为我安装的具有相同的版本.
如创意所述,从频道安装nb_conda_kernels
(可能已nb_conda
作为依赖项引入)在我的情况下没有帮助,但如果包中包含修复程序,则应该有效.conda-forge
也许这应该是一个评论,但我没有足够的声誉.
这是nb_conda中报告的错误.conda的包信息输出的格式已经改变,nb_conda必须进行调整.已经有一个拉取请求可以修复此问题,但我无法在任何渠道中找到更改.
安装分支包括修复程序现在有帮助:
pip install git+https://github.com/Anaconda-Platform/nb_conda.git@d488d9e --upgrade
这--upgrade
是可选的,我需要它,因为我安装的具有相同的版本.
如创意所述,从频道安装nb_conda_kernels
(可能已nb_conda
作为依赖项引入)在我的情况下没有帮助,但如果包中包含修复程序,则应该有效.conda-forge