最近安装库,很多库出现类似的安装失败,请问怎么解决?
C:\Users\Administrator>pip install pyautogui
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pyautogui
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f0/76/7a0ec1013bc3559b7438f6773cba05ffaec600b8989be2d621a144e39b50/PyAutoGUI-0.9.53.tar.gz (59 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\Administrator\AppData\Local\Temp\pip-install-_qs5fjbj\pyautogui_0cddc1057a884c0da93050a5db4e1124\setup.py", line 18, in <module>
setup(
File "D:\Python310\lib\site-packages\setuptools\__init__.py", line 86, in setup
_install_setup_requires(attrs)
File "D:\Python310\lib\site-packages\setuptools\__init__.py", line 75, in _install_setup_requires
dist = MinimalDistribution(attrs)
File "D:\Python310\lib\site-packages\setuptools\__init__.py", line 57, in __init__
super().__init__(filtered)
File "D:\Python310\lib\site-packages\setuptools\dist.py", line 475, in __init__
for ep in metadata.entry_points(group='distutils.setup_keywords'):
TypeError: entry_points() got an unexpected keyword argument 'group'
[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.