Ash~ 发表于 2022-9-5 14:42:32

关于jupyter下载失败

帮忙看看是什么问题,并且给出相应的解决方案

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting jupyter
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/83/df/0f5dd132200728a86190397e1ea87cd76244e42d39ec5e88efd25b2abd7e/jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Collecting notebook
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b5/62/229659241aee54be38990e06e684bcfe5c9c8727185f5e39335be8821583/notebook-6.4.12-py3-none-any.whl (9.9 MB)
Collecting ipywidgets
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e4/56/990c10ca8751182ace2464cb0e4baafb7087a40c185c9142b9cd18683fac/ipywidgets-8.0.2-py3-none-any.whl (134 kB)
Collecting qtconsole
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/94/c6/24472e801a397cbffaae852cd92450f4e01cebbe4d5c82f834326fb0b8e7/qtconsole-5.3.2-py3-none-any.whl (120 kB)
Collecting nbconvert
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b9/66/67e0a0f9e9cb0172d0d92686166418f69ec702ff7db2acca8c8caf325d0d/nbconvert-7.0.0-py3-none-any.whl (271 kB)
Collecting jupyter-console
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8b/0c/f9382ca7b7499c8594a5158817a72c95b4c09a6c6f2de10553bfe8905924/jupyter_console-6.4.4-py3-none-any.whl (22 kB)
Collecting ipykernel
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f7/97/9bcde0cb3b5bf5208787a296573c086ae6ce4615d10599570bce76197c85/ipykernel-6.15.2-py3-none-any.whl (132 kB)
Requirement already satisfied: tornado>=6.1 in c:\users\31698\appdata\local\programs\python\python310\lib\site-packages (from ipykernel->jupyter) (6.2)
Requirement already satisfied: pyzmq>=17 in c:\users\31698\appdata\local\programs\python\python310\lib\site-packages (from ipykernel->jupyter) (23.2.1)
Collecting nest-asyncio
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/be/1e/a83058de46b40a392bdefcaac44d1d42db4bf8562cb68c95d6bae4b93276/nest_asyncio-1.5.5-py3-none-any.whl (5.2 kB)
Collecting debugpy>=1.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/26/73/43238498d39036b2c90c4ec29f64bbcee9c35c524c1176ad1ae5863119e4/debugpy-1.6.3-cp310-cp310-win_amd64.whl (4.6 MB)
Requirement already satisfied: ipython>=7.23.1 in c:\users\31698\appdata\local\programs\python\python310\lib\site-packages (from ipykernel->jupyter) (8.4.0)
Collecting jupyter-client>=6.1.12
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/35/af/66f66acacf1b22b1400cd46e1ac83810509511e7c75afbfbdd9155367a99/jupyter_client-7.3.5-py3-none-any.whl (132 kB)
Requirement already satisfied: packaging in c:\users\31698\appdata\local\programs\python\python310\lib\site-packages (from ipykernel->jupyter) (21.3)
Requirement already satisfied: traitlets>=5.1.0 in c:\users\31698\appdata\local\programs\python\python310\lib\site-packages (from ipykernel->jupyter) (5.3.0)
Collecting psutil
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8f/57/828ac1f70badc691a716e77bfae258ef5db76bb7830109bf4bcf882de020/psutil-5.9.2.tar.gz (479 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─>
      Traceback (most recent call last):
      File "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 14, in <module>
      File "C:\Users\31698\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\__init__.py", line 10, in <module>
          from setuptools.extern.six.moves import filter, map
      File "C:\Users\31698\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\extern\__init__.py", line 1, in <module>
          from pkg_resources.extern import VendorImporter
      File "C:\Users\31698\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources\__init__.py", line 74, in <module>
          __import__('pkg_resources.extern.packaging.requirements')
      File "C:\Users\31698\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources\_vendor\packaging\requirements.py", line 9, in <module>
          from pkg_resources.extern.pyparsing import stringStart, stringEnd, originalTextFor, ParseException
      File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
      File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 672, in _load_unlocked
      File "<frozen importlib._bootstrap>", line 632, in _load_backward_compatible
      File "C:\Users\31698\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources\extern\__init__.py", line 43, in load_module
          __import__(extant)
      File "C:\Users\31698\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources\_vendor\pyparsing.py", line 943, in <module>
          collections.MutableMapping.register(ParseResults)
      AttributeError: module 'collections' has no attribute 'MutableMapping'
      

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Twilight6 发表于 2022-9-5 14:42:33



参考文章:

https://zhuanlan.zhihu.com/p/89858202

dolly_yos2 发表于 2022-9-5 15:17:04

错误报告里能看到这样一行
AttributeError: module 'collections' has no attribute 'MutableMapping'
这可能是由于现在 MutableMapping 已经从 collections 移动到了 collections.abc 中,因此无法正确引用。
不确定如何解决,可能可以先尝试升级本地的可能有关的模块(或者全升级了),或者尝试修改出现问题的文件(下策)

我爱量化 发表于 2022-11-9 18:37:45

想问一下楼主 问题解决了吗
页: [1]
查看完整版本: 关于jupyter下载失败