首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >pip安装失败

pip安装失败
EN

Stack Overflow用户
提问于 2022-03-24 04:57:27
回答 1查看 1.4K关注 0票数 0
代码语言:javascript
运行
复制
C:\\Users\\BoBo\>pip install autopy
Collecting autopy
Using cached 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 "\<string\>", line 2, in \<module\>
File "\<pip-setuptools-caller\>", line 34, in \<module\>
File "C:\\Users\\BoBo\\AppData\\Local\\Temp\\pip-install-540ias0x\\autopy_48ff0273bf204c08bd6332db1d22716a\\setup.py", line 8, in \<module\>
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.

代码语言:javascript
运行
复制
I have tried upgrading pip, reinstalling setuptools_rust !
pip version:22.0.4
python version:Python 3.10.3
EN

回答 1

Stack Overflow用户

发布于 2022-03-24 05:27:47

尸检项目页面( PyPI.The最新支持python3.8)中,似乎没有为python3.10预先构建的车轮。

因此,您需要为您的操作系统编译。

在documentation.First中,通过运行以下命令查看机器是否可用二进制轮:

代码语言:javascript
运行
复制
$ pip install -U autopy

如果失败,则需要使用铁锈安装生锈编译器,然后运行:

代码语言:javascript
运行
复制
$ rustup default nightly-2019-10-05
$ pip install -U setuptools-rust
$ pip install -U autopy

另一种选择是从GitHub存储库的最新源代码构建:

代码语言:javascript
运行
复制
$ git clone git://github.com/autopilot-rs/autopy-rs.git
$ cd autopy 
$ make 
$ make install
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71597245

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档