Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22233

command '/usr/bin/gcc' failed with exit code 1 in Linux [closed]

$
0
0

I got an error when I used "pip install -r requirements.txt" to install the build dependencies of the code "https://github.com/allenai/sequential_sentence_classification".

I used Linux.

× Running setup.py install for preshed did not run successfully.│ exit code: 1╰─> [14 lines of output]            /opt/conda/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.              warnings.warn(            running install            /opt/conda/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.              warnings.warn(            running build            running build_py            running build_ext            building 'preshed.maps' extension            gcc -pthread -B /opt/conda/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/conda/include -fPIC -O2 -isystem /opt/conda/include -fPIC -I/opt/conda/include/python3.10 -I/opt/conda/include/python3.10 -c preshed/maps.cpp -o build/temp.linux-x86_64-cpython-310/preshed/maps.o -O3 -Wno-strict-prototypes -Wno-unused-function            gcc: error: preshed/maps.cpp: No such file or directory            gcc: fatal error: no input files            compilation terminated.            error: command '/usr/bin/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: legacy-install-failure× Encountered error while trying to install package.╰─> preshed      note: This is an issue with the package mentioned above, not pip.      hint: See above for output from the failure.      [end of output]  note: This error originates from a subprocess, and is likely not a problem with pip.error: subprocess-exited-with-error× pip subprocess to install build dependencies 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.

I have tried the solutions searched online as follows:

apt-get install build-essential

and

apt-get install python3-dev

But it still returns the same error.

It is very appreciated if anybody could help me to solve this problem.Thanks!


Viewing all articles
Browse latest Browse all 22233

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>