报错信息:
C:\Users\Administrator>pip install autopy -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting autopy
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3d/3e/e589bfe03c7ee1c3d832dda10b908557f25a09d66acfc8fc7d982ee23d1a/autopy-4.0.0.tar.gz (20 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "" , line 2, in
File "" , line 34, in
File "C:\Users\Administrator\AppData\Local\Temp\pip-install-aumwadl1\autopy_cef755bf91bc4a9f936dfdec5f501378\setup.py", line 8, in
from setuptools_rust import Binding, RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
[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.
急!
错误代码提示没有模块setuptools_rust,安装一下就行了吧:
pip install setuptools_rust
博主你好,刚才试了下更换源,使用阿里源可以安装成功
命令:pip install autopy -i https://mirrors.aliyun.com/pypi/simple/
安装成功截图如下:
希望对博主有帮助
不知道你这个问题是否已经解决, 如果还没有解决的话: