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.

2 Answers 2

9

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.

Sign up to request clarification or add additional context in comments.

Comments

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.