|
40鱼币
帮忙看看是什么问题,并且给出相应的解决方案
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting jupyter
Using cached https://pypi.tuna.tsinghua.edu.c ... y2.py3-none-any.whl (2.7 kB)
Collecting notebook
Using cached https://pypi.tuna.tsinghua.edu.c ... 12-py3-none-any.whl (9.9 MB)
Collecting ipywidgets
Using cached https://pypi.tuna.tsinghua.edu.c ... .2-py3-none-any.whl (134 kB)
Collecting qtconsole
Using cached https://pypi.tuna.tsinghua.edu.c ... .2-py3-none-any.whl (120 kB)
Collecting nbconvert
Using cached https://pypi.tuna.tsinghua.edu.c ... .0-py3-none-any.whl (271 kB)
Collecting jupyter-console
Using cached https://pypi.tuna.tsinghua.edu.c ... .4-py3-none-any.whl (22 kB)
Collecting ipykernel
Using cached https://pypi.tuna.tsinghua.edu.c ... .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.c ... .5-py3-none-any.whl (5.2 kB)
Collecting debugpy>=1.0
Using cached https://pypi.tuna.tsinghua.edu.c ... 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.c ... .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.c ... 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
╰─> [20 lines of output]
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'
[end of output]
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.
|
最佳答案
查看完整内容
参考文章:
https://zhuanlan.zhihu.com/p/89858202
|