pip 安装失败
显示 build 失败
Building wheels for collected packages: cymem, murmurhashBuilding wheel for cymem (pyproject.toml) ... errorerror: subprocess-exited-with-error× Building wheel for cymem (pyproject.toml) did not run successfully.│ exit code: 1╰─> [32 lines of output]running bdist_wheelrunning buildrunning build_pycreating build/lib.linux-x86_64-cpython-38/cymemcopying cymem/__init__.py -> build/lib.linux-x86_64-cpython-38/cymemcopying cymem/about.py -> build/lib.linux-x86_64-cpython-38/cymemcreating build/lib.linux-x86_64-cpython-38/cymem/testscopying cymem/tests/__init__.py -> build/lib.linux-x86_64-cpython-38/cymem/testscopying cymem/tests/test_import.py -> build/lib.linux-x86_64-cpython-38/cymem/testscopying cymem/cymem.pyx -> build/lib.linux-x86_64-cpython-38/cymemcopying cymem/__init__.pxd -> build/lib.linux-x86_64-cpython-38/cymemcopying cymem/cymem.pxd -> build/lib.linux-x86_64-cpython-38/cymemrunning build_extbuilding 'cymem.cymem' extensioncreating build/temp.linux-x86_64-cpython-38/cymemg++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/python3/include/python3.8 -I/home/venvs/alita/include -I/usr/local/python3/include/python3.8 -c cymem/cymem.cpp -o build/temp.linux-x86_64-cpython-38/cymem/cymem.o -O3 -Wno-strict-prototypes -Wno-unused-function/tmp/pip-build-env-i5yohk0c/overlay/lib/python3.8/site-packages/setuptools/dist.py:495: SetuptoolsDeprecationWarning: Invalid dash-separated options!!********************************************************************************Usage of dash-separated 'index-url' will not be supported in futureversions. Please use the underscore name 'index_url' instead.By 2025-Mar-03, you need to update your project and remove deprecated callsor your builds will no longer be supported.See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.********************************************************************************!!opt = self.warn_dash_deprecation(opt, section)error: command 'g++' failed: Not a directory[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.ERROR: Failed building wheel for cymemBuilding wheel for murmurhash (pyproject.toml) ... errorerror: subprocess-exited-with-error× Building wheel for murmurhash (pyproject.toml) did not run successfully.│ exit code: 1╰─> [36 lines of output]running bdist_wheelrunning buildrunning build_pycreating build/lib.linux-x86_64-cpython-38/murmurhashcopying murmurhash/__init__.py -> build/lib.linux-x86_64-cpython-38/murmurhashcopying murmurhash/about.py -> build/lib.linux-x86_64-cpython-38/murmurhashcreating build/lib.linux-x86_64-cpython-38/murmurhash/testscopying murmurhash/tests/__init__.py -> build/lib.linux-x86_64-cpython-38/murmurhash/testscopying murmurhash/tests/test_hash.py -> build/lib.linux-x86_64-cpython-38/murmurhash/testscopying murmurhash/tests/test_import.py -> build/lib.linux-x86_64-cpython-38/murmurhash/testscopying murmurhash/mrmr.pyx -> build/lib.linux-x86_64-cpython-38/murmurhashcopying murmurhash/__init__.pxd -> build/lib.linux-x86_64-cpython-38/murmurhashcopying murmurhash/mrmr.pxd -> build/lib.linux-x86_64-cpython-38/murmurhashcreating build/lib.linux-x86_64-cpython-38/murmurhash/include/murmurhashcopying murmurhash/include/murmurhash/MurmurHash2.h -> build/lib.linux-x86_64-cpython-38/murmurhash/include/murmurhashcopying murmurhash/include/murmurhash/MurmurHash3.h -> build/lib.linux-x86_64-cpython-38/murmurhash/include/murmurhashrunning build_extbuilding 'murmurhash.mrmr' extensioncreating build/temp.linux-x86_64-cpython-38/murmurhashg++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/python3/include/python3.8 -I/tmp/pip-install-4f621kqk/murmurhash_b1fa542d185146bc928670f8fe3ccb92/murmurhash/include -I/home/venvs/alita/include -I/usr/local/python3/include/python3.8 -c murmurhash/MurmurHash2.cpp -o build/temp.linux-x86_64-cpython-38/murmurhash/MurmurHash2.o -O3 -Wno-strict-prototypes -Wno-unused-function/tmp/pip-build-env-wiwrjfhc/overlay/lib/python3.8/site-packages/setuptools/dist.py:495: SetuptoolsDeprecationWarning: Invalid dash-separated options!!********************************************************************************Usage of dash-separated 'index-url' will not be supported in futureversions. Please use the underscore name 'index_url' instead.By 2025-Mar-03, you need to update your project and remove deprecated callsor your builds will no longer be supported.See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.********************************************************************************!!opt = self.warn_dash_deprecation(opt, section)error: command 'g++' failed: Not a directory[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.ERROR: Failed building wheel for murmurhash
Failed to build cymem murmurhash
ERROR: Could not build wheels for cymem, murmurhash, which is required to install pyproject.toml-based projects
解决方案
yum install gcc-c++
执行后,解决问题。实际上是C++编译的问题,在linux中,gcc/g++/c++都是响应工具,细节上支持不同的细节规范,murmurhash3用到了必须要用c++编译的部分,所以我遇到了问题