[英]Building wheel for gevent (pyproject.toml) did not run successfully
I got an error when install dependencies for my project!为我的项目安装依赖项时出错!
OS : WinDow 11操作系统:Windows 11
Python: 3.10.4 (64bit) Python:3.10.4(64位)
Pip: 22.1.2点数:22.1.2
Building wheel for django-admin-sortable2 (setup.py) ... done
Created wheel for django-admin-sortable2: filename=django_admin_sortable2-0.7.5-py3-none-any.whl size=69989 sha256=0a4ff29d0c9b0422611dde61c6c1665dd36b10f98413f4ed7b8532e29afdc03d
Stored in directory: c:\users\kev\appdata\local\pip\cache\wheels\99\3e\95\384eeaa2d641ef0c9e8b46e701737b53ae6a973358887816e0
Building wheel for easy-thumbnails (setup.py) ... done
Created wheel for easy-thumbnails: filename=easy_thumbnails-2.7-py2.py3-none-any.whl size=69700 sha256=ce66afcd2ca403acf9225b53eed60300c8d37c3bad53dcdf37ebc3a25550bdc6
Stored in directory: c:\users\kev\appdata\local\pip\cache\wheels\cb\33\00\f7fa4b381ae4cbaf99674fb7a4411339d38e616cfcc41632c5
Building wheel for gevent (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for gevent (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [288 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\gevent
copying src\gevent\ares.py -> build\lib.win-amd64-cpython-310\gevent
copying src\gevent\backdoor.py -> build\lib.win-amd64-cpython-310\gevent
copying src\gevent\baseserver.py -> build\lib.win-amd64-cpython-310\gevent
copying src\gevent\builtins.py -> build\lib.win-amd64-cpython-310\gevent
tl;dr : use python3.8 or update requirement.txt versions. tl;dr :使用 python3.8 或更新 requirements.txt 版本。
More info :更多信息:
The combination of (A) gevent==20.9, (B) windows 10, and (C) python3.10 does not have a prebuilt wheel. (A) gevent==20.9、(B) windows 10 和 (C) python3.10 的组合没有预建轮子。 You can check this kind of stuff by going to pypi and looking what is offered for downloads ( https://pypi.org/project/gevent/20.9.0/#files )
您可以通过转到 pypi 并查看提供的下载内容( https://pypi.org/project/gevent/20.9.0/#files )来检查此类内容
I'm assuming that you will not be able to compile things from source yourself (it's a hassle), so you need to change (A), (B) or (C).我假设您将无法自己从源代码编译东西(这很麻烦),因此您需要更改(A)、(B)或(C)。
(A). (一个)。 Changing this means relaxing or updating the version requirements.
改变这意味着放宽或更新版本要求。 For example gevent==21.12 does have a wheel for windows and python3.10
例如 gevent==21.12 确实有一个用于 windows 和 python3.10 的轮子
(B). (乙)。 Changing this means not using windows, probably not an option
改变这意味着不使用 Windows,可能不是一个选项
(C). (C)。 Changing this means using older python version.
改变这意味着使用旧的 python 版本。 For example, python3.8 has a wheel for gevent==20.9.
例如,python3.8 有一个用于 gevent==20.9 的轮子。
gevent==20.9.0
probably doesn't support Python 3.10, you can downgrade to Python 3.8 or you can try to download and install the latest version of gevent - gevent 21.12.0
- see https://pypi.org/project/gevent/#downloads . gevent==20.9.0
可能不支持 Python 3.10,你可以降级到 Python 3.8 或者你可以尝试下载并安装最新版本的 gevent - gevent 21.12.0
- 见https://pypi.org/project/ gevent/#downloads 。
requirements.txt
and replace the line gevent==20.9.0
with gevent==21.12.0
.requirements.txt
并将行gevent==20.9.0
替换为gevent==21.12.0
。pip install -r requirements.txt
pip install -r requirements.txt
If the solution above doesn't help, try to manually install a gevent
wheel:如果上述解决方案没有帮助,请尝试手动安装
gevent
轮:
greenlet
wheel greenlet‑1.1.2‑cp310‑cp310‑win_amd64.whl
from https://www.lfd.uci.edu/~gohlke/pythonlibs/#greenletgreenlet
轮greenlet‑1.1.2‑cp310‑cp310‑win_amd64.whl
greenlet
wheel and install itgreenlet
wheel的本地目录并安装它pip install greenlet‑1.1.2‑cp310‑cp310‑win_amd64.whl
gevent
wheel gevent‑21.12.0‑cp310‑cp310‑win_amd64.whl
from https://www.lfd.uci.edu/~gohlke/pythonlibs/#geventgevent
轮gevent‑21.12.0‑cp310‑cp310‑win_amd64.whl
gevent
wheel and install itgevent
轮的本地目录并安装它pip install gevent‑21.12.0‑cp310‑cp310‑win_amd64.whl
gevent==20.9.0
from requirements.txt
and install other dependencies: pip install -r requirements.txt
requirements.txt
中删除gevent==20.9.0
并安装其他依赖项: pip install -r requirements.txt
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.