ERROR: Could not build wheels for gevent, which is required to install pyproject.toml-based projects
Asked Answered
C

2

12

I am using python 3.9. I tried to install a python package :

pip.exe install gdbgui==0.13.2.0

But it gives me an error

ERROR: Failed building wheel for gevent
Failed to build gevent
ERROR: Could not build wheels for gevent, which is required to install pyproject.toml-based projects

I tried to download the gevent from this link https://www.lfd.uci.edu/~gohlke/pythonlibs/#gevent

Then I run the command

pip.exe install gevent‑21.12.0‑cp39‑cp39‑win_amd64.whl

It installed successfully , but the error stills coming.

Please do you know how to resolve this issue ? This error : ERROR: Could not build wheels for gevent, which is required to install pyproject.toml-based projects

Thank you in advance.

Casino answered 21/12, 2021 at 14:20 Comment(0)
C
8

Finally I resolved the issue by downgrading my python to 3.8. Then it worked.

I hope it will help other people in the same situation.

Casino answered 21/12, 2021 at 17:11 Comment(0)
C
0

I have the same problem but when tried to install gevent on python3.9:

pip install gevent==24.2.1

I got this error:

#9 10.19   Building wheel for gevent (pyproject.toml): finished with status 'error'
#9 10.27   error: subprocess-exited-with-error
#9 10.27   
#9 10.27   × Building wheel for gevent (pyproject.toml) did not run successfully.
#9 10.27   │ exit code: 1
.... 
#9 10.27   note: This error originates from a subprocess, and is likely not a problem with pip.
#9 10.27   ERROR: Failed building wheel for gevent
#9 10.27 Failed to build gevent
#9 10.27 ERROR: Could not build wheels for gevent, which is required to install pyproject.toml-based projects

To resolve this on Ubuntu, in my case, was enough to exec:

apt-get update && apt-get install -y --no-install-recommends build-essential
Couchant answered 19/2 at 13:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.