Pip install fails when installing a wheel file that I built myself

ray version is 2.10.0.
I use this command to build wheel file:python setup.py bdist_wheel
the error is this:
root# python -m pip install ray-2.10.0-cp38-cp38-linux_x86_64_1203_1.whl
ERROR: ray-2.10.0-cp38-cp38-linux_x86_64_1203_1.whl is not a supported wheel on this platform.

root@sxx_u2004_ray_2_10_wheel:/home# auditwheel ray-2.10.0-cp38-cp38-linux_x86_64_1203_1.whl
usage: auditwheel [-h] [-V] [-v] command …
auditwheel: error: argument command: invalid choice: ‘ray-2.10.0-cp38-cp38-linux_x86_64_1203_1.whl’ (choose from ‘show’, ‘repair’, ‘lddtree’)
root# auditwheel show ray-2.10.0-cp38-cp38-linux_x86_64_1203_1.whl
Traceback (most recent call last):
File “/workplace/venv3/bin/auditwheel”, line 8, in
sys.exit(main())
File “/workplace/venv3/lib/python3.8/site-packages/auditwheel/main.py”, line 54, in main
rval = args.func(args, p)
File “/workplace/venv3/lib/python3.8/site-packages/auditwheel/main_show.py”, line 38, in execute
winfo = analyze_wheel_abi(wheel_policy, args.WHEEL_FILE, frozenset())
File “/workplace/venv3/lib/python3.8/site-packages/auditwheel/wheel_abi.py”, line 246, in analyze_wheel_abi
) = get_wheel_elfdata(wheel_policy, wheel_fn, exclude)
File “/workplace/venv3/lib/python3.8/site-packages/auditwheel/wheel_abi.py”, line 117, in get_wheel_elfdata
raise RuntimeError(
RuntimeError: Invalid binary wheel, found the following shared library/libraries in purelib folder:
_raylet.so
_helpers.cpython-38-x86_64-linux-gnu.so
_http_parser.cpython-38-x86_64-linux-gnu.so
_http_writer.cpython-38-x86_64-linux-gnu.so
_websocket.cpython-38-x86_64-linux-gnu.so
_frozenlist.cpython-38-x86_64-linux-gnu.so
_multidict.cpython-38-x86_64-linux-gnu.so
_helpers_c.cpython-38-x86_64-linux-gnu.so
_quoting_c.cpython-38-x86_64-linux-gnu.so
libjemalloc.so
gcs_server
raylet
setproctitle.cpython-38-x86_64-linux-gnu.so
_psutil_linux.abi3.so
_psutil_posix.abi3.so
The wheel has to be platlib compliant in order to be repaired by auditwheel.

thank you a lot!

@keasy Looks like you built your wheel for linux_x86_64. For Ray, it needs to be built for manylinux2014_x86_64.

Also, here might be a useful doc about how the wheel file is built today in Ray: ray/python/README-building-wheels.md at master · ray-project/ray · GitHub

Your answer is very helpful to me. Thank you very much!