简体   繁体   English

gevent (pyproject.toml) 的构建轮未成功运行

[英]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

  1. Go to 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
  2. After that you can try to install all dependencies: 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轮:

  1. Download greenlet wheel greenlet‑1.1.2‑cp310‑cp310‑win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#greenlethttps://www.lfd.uci.edu/~gohlke/pythonlibs/#greenlet下载greenletgreenlet‑1.1.2‑cp310‑cp310‑win_amd64.whl
  2. Go to the local directory which contains downloaded greenlet wheel and install it转到包含下载的greenlet wheel的本地目录并安装它
pip install greenlet‑1.1.2‑cp310‑cp310‑win_amd64.whl
  1. Download gevent wheel gevent‑21.12.0‑cp310‑cp310‑win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#geventhttps://www.lfd.uci.edu/~gohlke/pythonlibs/#gevent下载geventgevent‑21.12.0‑cp310‑cp310‑win_amd64.whl
  2. Go to the local directory which contains downloaded gevent wheel and install it转到包含下载的gevent轮的本地目录并安装它
pip install gevent‑21.12.0‑cp310‑cp310‑win_amd64.whl
  1. Finally you can remove 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.

相关问题 尝试在 Heroku 问题上部署 API 准备元数据 (pyproject.toml) 未成功运行 - Trying to deploy API on Heroku issue Preparing metadata (pyproject.toml) did not run successfully 卡在 opencv-contrib-python (pyproject.toml) 的构建轮上 - Stuck on Building wheel for opencv-contrib-python (pyproject.toml) Windows 10,数据表安装问题“准备元数据 (pyproject.toml) 未成功运行。” - Windows 10, Datatable install issue 'Preparing metadata (pyproject.toml) did not run successfully.' 使用 pip 安装 pytq5 时出错:准备元数据 (pyproject.toml) 未成功运行 - Error while installing pytq5 with pip: Preparing metadata (pyproject.toml) did not run successfully 安装错误streamlit: Building wheel for pyarrow (pyproject.toml)...错误 - Installation error streamlit: Building wheel for pyarrow (pyproject.toml) ... error 如何使用 pyproject.toml 构建万能轮 - How to build a universal wheel with pyproject.toml pip 安装变压器时出错:标记器 (pyproject.toml) 的构建轮:完成状态为“错误” - Error in pip install transformers: Building wheel for tokenizers (pyproject.toml): finished with status 'error' 'tox' 和 'pyproject.toml' - 'tox' and 'pyproject.toml' 在 pyproject.toml 中连接 2 个数组 - Concatenate 2 arrays in pyproject.toml 使用 tox 和 pyproject.toml - Using tox and pyproject.toml
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM