I am installing gevent verision 24.2.1 and getting errors.
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '(cd "/tmp/pip-install-jtzacwxb/gevent_691e43de53f244fe941d9615bfa86f6d/deps/c-ares" && if [ -r include/ares_build.h ]; then cp include/ares_build.h include/ares_build.h.orig; fi && sh ./configure --disable-dependency-tracking -C CFLAGS="-Wsign-compare -Wunreachable-code -DNDEBUG -O2 -fstack-protector-strong -pipe -fstack-protector-strong -fno-strict-aliasing" && cp src/lib/ares_config.h include/ares_build.h "$OLDPWD" && cat include/ares_build.h && if [ -r include/ares_build.h.orig ]; then mv include/ares_build.h.orig include/ares_build.h; fi) > configure-output.txt' returned non-zero exit status 1.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for gevent
Building wheel for MarkupSafe (setup.py) ... done
Created wheel for MarkupSafe: filename=MarkupSafe-2.1.5-cp311-cp311-freebsd_14_1_release_p4_amd64.whl size=15599 sha256=12f2018eafb41e90b7ce04ea9ec1fcf28aa7644234ce4b7106f8482b25928444
Stored in directory: /usr/home/jamesl/.cache/pip/wheels/6d/eb/a5/82b178b683b6dc068c2eb7b38fc35ebc7ea378b5faad3d1326
Building wheel for zope.interface (setup.py) ... done
Created wheel for zope.interface: filename=zope.interface-6.2-cp311-cp311-freebsd_14_1_release_p4_amd64.whl size=205697 sha256=c64555d334c31f68c12958b42f19d3625d0a4d038f6fd236854b70eb73750b44
Stored in directory: /usr/home/jamesl/.cache/pip/wheels/74/4c/3a/9ea8ef697de324b20b53fc4f9ab2d52f7604e57ce61d55c212
Successfully built Brotli MarkupSafe zope.interface
Failed to build gevent
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (gevent)
Thanks for your help.

there is no way we can run pyenv install 3.12.5 to install newest python right?

    JamesLee Looks like the latest version is broken, try a previous one:
    pip install -v gevent==23.9.1