error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

本文介绍如何使用sudo apt-get命令安装一系列用于Python OpenGL和Qt应用开发的必要软件包,包括build-essential、autoconf等工具。
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev
(venv) gapinyc@DESKTOP-9QS7RL5:~/superset$ pip install --no-binary :all: pymssql Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/ Collecting pymssql Downloading https://pypi.tuna.tsinghua.edu.cn/packages/20/1c/1980c9e14e6ab6db4c775d92bf517b70bcafcfbc56eb5b58e2ee81744d4c/pymssql-2.3.8.tar.gz (185 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: pymssql Building wheel for pymssql (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for pymssql (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [45 lines of output] /tmp/pip-build-env-8uiu4bcy/overlay/lib/python3.10/site-packages/setuptools_scm/_integration/version_inference.py:51: UserWarning: version of None already set warnings.warn(self.message) setup.py: BITNESS='64' setup.py: prefix='/usr/local' setup.py: platform.system() => Linux setup.py: platform.architecture() => ('64bit', 'ELF') setup.py: platform.libc_ver() => ('glibc', '2.35') setup.py: include_dirs => ['/usr/local/include'] setup.py: library_dirs => ['/usr/local/lib'] running bdist_wheel running build running build_py creating build/lib.linux-x86_64-cpython-310/pymssql copying src/pymssql/__init__.py -> build/lib.linux-x86_64-cpython-310/pymssql copying src/pymssql/exceptions.py -> build/lib.linux-x86_64-cpython-310/pymssql running egg_info writing src/pymssql.egg-info/PKG-INFO writing dependency_links to src/pymssql.egg-info/dependency_links.txt writing top-level names to src/pymssql.egg-info/top_level.txt listing git files failed - pretending there aren't any reading manifest file 'src/pymssql.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'src/pymssql.egg-info/SOURCES.txt' copying src/pymssql/__init__.pyi -> build/lib.linux-x86_64-cpython-310/pymssql copying src/pymssql/_mssql.pxd -> build/lib.linux-x86_64-cpython-310/pymssql copying src/pymssql/_mssql.pyi -> build/lib.linux-x86_64-cpython-310/pymssql copying src/pymssql/_mssql.pyx -> build/lib.linux-x86_64-cpython-310/pymssql copying src/pymssql/_pymssql.pyi -> build/lib.linux-x86_64-cpython-310/pymssql copying src/pymssql/_pymssql.pyx -> build/lib.linux-x86_64-cpython-310/pymssql copying src/pymssql/exceptions.pyi -> build/lib.linux-x86_64-cpython-310/pymssql copying src/pymssql/py.typed -> build/lib.linux-x86_64-cpython-310/pymssql copying src/pymssql/sqlfront.pxd -> build/lib.linux-x86_64-cpython-310/pymssql copying src/pymssql/version.h -> build/lib.linux-x86_64-cpython-310/pymssql running build_ext Compiling src/pymssql/_mssql.pyx because it changed. [1/1] Cythonizing src/pymssql/_mssql.pyx building 'pymssql._mssql' extension creating build/temp.linux-x86_64-cpython-310/src/pymssql x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/local/include -I/home/gapinyc/superset/venv/include -I/usr/include/python3.10 -c src/pymssql/_mssql.c -o build/temp.linux-x86_64-cpython-310/src/pymssql/_mssql.o -DMSDBLIB -std=c99 x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-x86_64-cpython-310/src/pymssql/_mssql.o -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu -lsybdb -lgssapi_krb5 -lkrb5 -lssl -lcrypto -o build/lib.linux-x86_64-cpython-310/pymssql/_mssql.cpython-310-x86_64-linux-gnu.so /usr/bin/ld: cannot find -lgssapi_krb5: No such file or directory /usr/bin/ld: cannot find -lkrb5: No such file or directory collect2: error: ld returned 1 exit status error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pymssql Failed to build pymssql error: failed-wheel-build-for-install × Failed to build installable wheels for some pyproject.toml based projects ╰─> pymssql (venv) gapinyc@DESKTOP-9QS7RL5:~/superset$
最新发布
11-06
还是报错USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ In file included from models/lidar_det/base_2d_view.h:11, from models/lidar_det/base_2d_view.cpp:14: models/lidar_det/point_cloud.h:12:10: fatal error: Eigen/Eigen: No such file or directory 12 | #include <Eigen/Eigen> | ^~~~~~~~~~~~~ compilation terminated. /home/ma-user/miniconda3/envs/deploy_e2e/lib/python3.8/site-packages/setuptools/command/easy_install.py:156: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( /home/ma-user/miniconda3/envs/deploy_e2e/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( /home/ma-user/miniconda3/envs/deploy_e2e/lib/python3.8/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2.1.17.2ae09d45 is an invalid version and will not be supported in a future release warnings.warn( /home/ma-user/miniconda3/envs/deploy_e2e/lib/python3.8/site-packages/torch/utils/cpp_extension.py:370: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) error: command '/home/ma-user/miniconda3/envs/deploy_e2e/bin/x86_64-conda-linux-gnu-cc' failed with exit status 1 error: subprocess-exited-with-error × python setup.py develop did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. full command: /home/ma-user/miniconda3/envs/deploy_e2e/bin/python -c ' exec(compile('"'"''"'"''"'"' # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py # # - It imports setuptools before invoking setup.py, to enable projects that directly # import from `distutils.core` to work with newer packaging standards. # - It provides a clear error message when setuptools is not installed. # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so # setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning: # manifest_maker: standard file '"'"'-c'"'"' not found". # - It generates a shim setup.py, for handling setup.cfg-only projects. import os, sys, tokenize try: import setuptools except ImportError as error: print( "ERROR: Can not execute `setup.py` since setuptools is not available in " "the build environment.", file=sys.stderr, ) sys.exit(1) __file__ = %r sys.argv[0] = __file__ if os.path.exists(__file__): filename = __file__ with tokenize.open(__file__) as f: setup_py_code = f.read() else: filename = "<auto-generated setuptools caller>" setup_py_code = "from setuptools import setup; setup()" exec(compile(setup_py_code, filename, "exec")) '"'"''"'"''"'"' % ('"'"'/home/lk/workspace/nnplanner/tasks/bev_task/uvp_module/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' develop --no-deps cwd: /home/lk/workspace/nnplanner/tasks/bev_task/uvp_module/ error: subprocess-exited-with-error × python setup.py develop did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.
09-12
(timbrewatermark) root@autodl-container-5e64478fe3-5fbcb1e5:~/autodl-tmp/TimbreWatermarking-main/watermarking_model# pip install pypesq==1.2.4 Looking in indexes: http://mirrors.aliyun.com/pypi/simple Collecting pypesq==1.2.4 Using cached http://mirrors.aliyun.com/pypi/packages/c7/e7/97ef80281de134be48b352bb63218a5f92f96c5bce32f37e8e288d253eff/pypesq-1.2.4.tar.gz (30 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: numpy in /root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages (from pypesq==1.2.4) (1.24.2) Building wheels for collected packages: pypesq Building wheel for pypesq (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [103 lines of output] /root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/setuptools/installer.py:34: UserWarning: Module numpy was already imported from /root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/__init__.py, but /tmp/pip-install-b4hzkb01/pypesq_e9848519956f4b538b2373b159e56aef is being added to sys.path import pkg_resources # Delay import to avoid unnecessary side-effects /root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! dist.fetch_build_eggs(dist.setup_requires) running bdist_wheel running build running build_py file numpy.py (for module numpy) not found creating build/lib.linux-x86_64-cpython-38/pypesq copying pypesq/__init__.py -> build/lib.linux-x86_64-cpython-38/pypesq file numpy.py (for module numpy) not found running build_ext building 'pesq_core' extension creating build/temp.linux-x86_64-cpython-38/pypesq gcc -pthread -B /root/miniconda3/envs/timbrewatermark/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ipypesq -I/root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/core/include/numpy -I/root/miniconda3/envs/timbrewatermark/include/python3.8 -I/root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/core/include -c pypesq/dsp.c -o build/temp.linux-x86_64-cpython-38/pypesq/dsp.o gcc -pthread -B /root/miniconda3/envs/timbrewatermark/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ipypesq -I/root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/core/include/numpy -I/root/miniconda3/envs/timbrewatermark/include/python3.8 -I/root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/core/include -c pypesq/pesq.c -o build/temp.linux-x86_64-cpython-38/pypesq/pesq.o In file included from /root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940, from /root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12, from /root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5, from pypesq/pesq.c:2: /root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] 17 | #warning "Using deprecated NumPy API, disable it with " \ | ^~~~~~~ pypesq/pesq.c: In function ‘_pesq’: pypesq/pesq.c:61:34: warning: passing argument 1 of ‘compute_pesq’ from incompatible pointer type [-Wincompatible-pointer-types] 61 | float pesq = compute_pesq(ref->data, deg->data, ref->dimensions[0], deg->dimensions[0], fs); | ~~~^~~~~~ | | | char * In file included from pypesq/pesq.c:5: pypesq/pesq.h:287:28: note: expected ‘short int *’ but argument is of type ‘char *’ 287 | float compute_pesq(short * ref, short * deg, long ref_n_samples, long deg_n_samples, long fs); | ~~~~~~~~^~~ pypesq/pesq.c:61:45: warning: passing argument 2 of ‘compute_pesq’ from incompatible pointer type [-Wincompatible-pointer-types] 61 | float pesq = compute_pesq(ref->data, deg->data, ref->dimensions[0], deg->dimensions[0], fs); | ~~~^~~~~~ | | | char * In file included from pypesq/pesq.c:5: pypesq/pesq.h:287:41: note: expected ‘short int *’ but argument is of type ‘char *’ 287 | float compute_pesq(short * ref, short * deg, long ref_n_samples, long deg_n_samples, long fs); | ~~~~~~~~^~~ gcc -pthread -B /root/miniconda3/envs/timbrewatermark/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ipypesq -I/root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/core/include/numpy -I/root/miniconda3/envs/timbrewatermark/include/python3.8 -I/root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/core/include -c pypesq/pesqdsp.c -o build/temp.linux-x86_64-cpython-38/pypesq/pesqdsp.o gcc -pthread -B /root/miniconda3/envs/timbrewatermark/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ipypesq -I/root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/core/include/numpy -I/root/miniconda3/envs/timbrewatermark/include/python3.8 -I/root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/core/include -c pypesq/pesqio.c -o build/temp.linux-x86_64-cpython-38/pypesq/pesqio.o pypesq/pesqio.c: In function ‘load_src’: pypesq/pesqio.c:200:10: warning: unused variable ‘s’ [-Wunused-variable] 200 | char s; | ^ pypesq/pesqio.c:198:10: warning: unused variable ‘count’ [-Wunused-variable] 198 | long count; | ^~~~~ pypesq/pesqio.c:196:10: warning: unused variable ‘to_read’ [-Wunused-variable] 196 | long to_read; | ^~~~~~~ gcc -pthread -B /root/miniconda3/envs/timbrewatermark/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ipypesq -I/root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/core/include/numpy -I/root/miniconda3/envs/timbrewatermark/include/python3.8 -I/root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/core/include -c pypesq/pesqmain.c -o build/temp.linux-x86_64-cpython-38/pypesq/pesqmain.o pypesq/pesqmain.c: In function ‘compute_pesq’: pypesq/pesqmain.c:118:10: warning: unused variable ‘names’ [-Wunused-variable] 118 | int names = 0; | ^~~~~ pypesq/pesqmain.c: In function ‘pesq_measure’: pypesq/pesqmain.c:405:25: warning: variable ‘end’ set but not used [-Wunused-but-set-variable] 405 | long start, end; | ^~~ pypesq/pesqmain.c:405:18: warning: variable ‘start’ set but not used [-Wunused-but-set-variable] 405 | long start, end; | ^~~~~ pypesq/pesqmain.c:242:9: warning: unused variable ‘i’ [-Wunused-variable] 242 | int i; | ^ pypesq/pesqmain.c:404:12: warning: ‘resultsFile’ may be used uninitialized [-Wmaybe-uninitialized] 404 | if (resultsFile != NULL) { | ^ gcc -pthread -B /root/miniconda3/envs/timbrewatermark/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ipypesq -I/root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/core/include/numpy -I/root/miniconda3/envs/timbrewatermark/include/python3.8 -I/root/miniconda3/envs/timbrewatermark/lib/python3.8/site-packages/numpy/core/include -c pypesq/pesqmod.c -o build/temp.linux-x86_64-cpython-38/pypesq/pesqmod.o pypesq/pesqmod.c: In function ‘utterance_split’: pypesq/pesqmod.c:298:10: warning: variable ‘Utt_Delay’ set but not used [-Wunused-but-set-variable] 298 | long Utt_Delay; | ^~~~~~~~~ pypesq/pesqmod.c: In function ‘pesq_psychoacoustic_model’: pypesq/pesqmod.c:806:13: warning: variable ‘peak’ set but not used [-Wunused-but-set-variable] 806 | float peak; | ^~~~ pypesq/pesqmod.c:782:24: warning: variable ‘power_deg’ set but not used [-Wunused-but-set-variable] 782 | float power_ref, power_deg; | ^~~~~~~~~ pypesq/pesqmod.c:782:13: warning: variable ‘power_ref’ set but not used [-Wunused-but-set-variable] 782 | float power_ref, power_deg; | ^~~~~~~~~ g++ -pthread -B /root/miniconda3/envs/timbrewatermark/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -pthread -shared -B /root/miniconda3/envs/timbrewatermark/compiler_compat -L/root/miniconda3/envs/timbrewatermark/lib -Wl,-rpath=/root/miniconda3/envs/timbrewatermark/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-cpython-38/pypesq/dsp.o build/temp.linux-x86_64-cpython-38/pypesq/pesq.o build/temp.linux-x86_64-cpython-38/pypesq/pesqdsp.o build/temp.linux-x86_64-cpython-38/pypesq/pesqio.o build/temp.linux-x86_64-cpython-38/pypesq/pesqmain.o build/temp.linux-x86_64-cpython-38/pypesq/pesqmod.o -o build/lib.linux-x86_64-cpython-38/pesq_core.cpython-38-x86_64-linux-gnu.so /root/miniconda3/envs/timbrewatermark/compiler_compat/ld: build/temp.linux-x86_64-cpython-38/pypesq/pesqdsp.o:/tmp/pip-install-b4hzkb01/pypesq_e9848519956f4b538b2373b159e56aef/pypesq/pesq.h:143: multiple definition of `Nb'; build/temp.linux-x86_64-cpython-38/pypesq/pesq.o:/tmp/pip-install-b4hzkb01/pypesq_e9848519956f4b538b2373b159e56aef/pypesq/pesq.h:143: first defined here /root/miniconda3/envs/timbrewatermark/compiler_compat/ld: build/temp.linux-x86_64-cpython-38/pypesq/pesqio.o:/tmp/pip-install-b4hzkb01/pypesq_e9848519956f4b538b2373b159e56aef/pypesq/pesq.h:143: multiple definition of `Nb'; build/temp.linux-x86_64-cpython-38/pypesq/pesq.o:/tmp/pip-install-b4hzkb01/pypesq_e9848519956f4b538b2373b159e56aef/pypesq/pesq.h:143: first defined here /root/miniconda3/envs/timbrewatermark/compiler_compat/ld: build/temp.linux-x86_64-cpython-38/pypesq/pesqmain.o:/tmp/pip-install-b4hzkb01/pypesq_e9848519956f4b538b2373b159e56aef/pypesq/pesq.h:143: multiple definition of `Nb'; build/temp.linux-x86_64-cpython-38/pypesq/pesq.o:/tmp/pip-install-b4hzkb01/pypesq_e9848519956f4b538b2373b159e56aef/pypesq/pesq.h:143: first defined here /root/miniconda3/envs/timbrewatermark/compiler_compat/ld: build/temp.linux-x86_64-cpython-38/pypesq/pesqmod.o:/tmp/pip-install-b4hzkb01/pypesq_e9848519956f4b538b2373b159e56aef/pypesq/pesq.h:143: multiple definition of `Nb'; build/temp.linux-x86_64-cpython-38/pypesq/pesq.o:/tmp/pip-install-b4hzkb01/pypesq_e9848519956f4b538b2373b159e56aef/pypesq/pesq.h:143: first defined here /root/miniconda3/envs/timbrewatermark/compiler_compat/ld: build/temp.linux-x86_64-cpython-38/pypesq/pesqmod.o:/tmp/pip-install-b4hzkb01/pypesq_e9848519956f4b538b2373b159e56aef/pypesq/pesqpar.h:123: multiple definition of `InIIR_Nsos'; build/temp.linux-x86_64-cpython-38/pypesq/pesqdsp.o:/tmp/pip-install-b4hzkb01/pypesq_e9848519956f4b538b2373b159e56aef/pypesq/pesqdsp.c:136: first defined here collect2: error: ld returned 1 exit status error: command '/usr/bin/g++' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pypesq Running setup.py clean for pypesq Failed to build pypesq ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pypesq)
06-18
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值