- error: command ‘gcc’ failed with exit status 1 while installing eventlet
- 18 Answers 18
- error: command ‘i686-linux-gnu-gcc’ failed with exit status 1 while installing pylibbvg
- 2 Answers 2
- Not the answer you’re looking for? Browse other questions tagged python or ask your own question.
- Related
- Hot Network Questions
- Subscribe to RSS
- error: command ‘arm-linux-gnueabihf-gcc’ failed with exit status 1 on RPi 3b when ‘python setup.py install’ #294
- Comments
- JayJoeSeventh commented Apr 30, 2018
- ghost commented May 9, 2018
- FuriosoJack commented Aug 23, 2018
- rsengar3 commented Sep 16, 2018
- KEINOS commented Nov 2, 2018
- tonytanjk commented Jan 3, 2019
- tonytanjk commented Jan 5, 2019
- chrisdimoff commented Mar 22, 2019
- tlilianas commented Jul 31, 2019
- jvanlangen commented Sep 20, 2019
- erm3nda commented Dec 12, 2019
- pawKer commented Dec 12, 2019
- maulalwi commented Jun 16, 2020
- rahulshyokand commented Jun 28, 2020
- These Commands Fixed Similar Issue on my Rpi 3b
- Problem seems to be in cffi package
- Here is the potential Error which gets solved
- error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
- 2 Answers 2
- error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1 #565
- Comments
- kramer65 commented Sep 17, 2015
- sebastinas commented Sep 17, 2015
- kramer65 commented Sep 18, 2015
- marcel060 commented Jun 7, 2020
- sebastinas commented Jun 7, 2020
error: command ‘gcc’ failed with exit status 1 while installing eventlet
I wanted to install eventlet on my system in order to have «Herd» for software deployment.. but the terminal is showing a gcc error:
Why can’t Python.h be found?
18 Answers 18
Your install is failing because you don’t have the python development headers installed. You can do this through apt on ubuntu/debian with:
for python3 use:
For eventlet you might also need the libevent libraries installed so if you get an error talking about that you can install libevent with:
What worked for me on CentOS was:
For Redhat Versions(Centos 7) Use the below command to install Python Development Package
Python 2.7
Python 3.4
Python 3.6
If the issue is still not resolved then try installing the below packages —
On MacOS I had trouble installing fbprophet which requires pystan which requires gcc to compile. I would consistently get the same error: command ‘gcc’ failed with exit status 1
I think I fixed the problem for myself thus:
I used brew install gcc to install the newest version, which ended up being gcc-8
Then I made sure that when gcc ran it would use gcc-8 instead.
It either worked because I added alias gcc=’gcc-8 in my .zshrc (same as .bashrc but for zsh), or because I ran export PATH=/usr/local/bin:$PATH (see comment)
Also: all my attempts were inside a virtual environment and I only succeeded by installing fbprophet globally (with pip), but still no success inside a venv
Источник
error: command ‘i686-linux-gnu-gcc’ failed with exit status 1 while installing pylibbvg
I’m installing pylibvg, and I get many links with similar error but for different installations. I tried a few things but keep getting the error. Basically, I am trying to run: sudo python setup.py build_ext —inplace
I have already successfully executed following:
Any ideas why I’m getting errors?
2 Answers 2
It seems this error could have been encountered because of lack of memory.
As wuan mentioned «https://github.com/pydata/pandas/issues/1880» following the steps to create a swapfile helped me to get over my issue. You can see if it helps you out.
Python.h is nothing but a header file. It is used by gcc to build applications. You need to install a package called python-dev. This package includes header files, a static library and development tools for building Python modules, extending the Python interpreter or embedding Python in applications. To install this package, enter:
Not the answer you’re looking for? Browse other questions tagged python or ask your own question.
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.10.8.40416
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Источник
error: command ‘arm-linux-gnueabihf-gcc’ failed with exit status 1 on RPi 3b when ‘python setup.py install’ #294
Comments
JayJoeSeventh commented Apr 30, 2018
I wanted to ‘import neopixel’ from anywhere, so I try to do the installation as shown. but it fails with error ‘arm-linux-gnueabihf-gcc’.
The text was updated successfully, but these errors were encountered:
ghost commented May 9, 2018
Hi!
I had same problem.
But I tried to follow the steps of this https://learn.adafruit.com/neopixels-on-raspberry-pi and then I can build this without problem.
I think that solution is install «scons»:
sudo apt-get update
sudo apt-get install build-essential python-dev git scons swig
FuriosoJack commented Aug 23, 2018
For those that have not worked at all you have to install these packages
sudo apt-get install libzbar-dev libzbar0
rsengar3 commented Sep 16, 2018
I tried all of the above but still has same problem?
KEINOS commented Nov 2, 2018
I think you need to install python-dev too. In order to let gcc compile the Python extensions.
Sorry if it’s not the case.
tonytanjk commented Jan 3, 2019
I tried everything but it’s a fail
tonytanjk commented Jan 5, 2019
sudo apt-get install portaudio19-dev.
Try this
chrisdimoff commented Mar 22, 2019
|
tlilianas commented Jul 31, 2019
this is what you are looking for guys :
sudo apt install -y python python-pip libffi-dev python-backports.ssl-match-hostname
sudo pip install docker-compose
jvanlangen commented Sep 20, 2019
Too bad, still:
Building wheel for cryptography (PEP 517) . error
erm3nda commented Dec 12, 2019
pawKer commented Dec 12, 2019
- Ensure SPI is enabled in raspi_config
- cd rpi_ws2811x && run scons
- try again
- be happy?
Just putting this out here in case it might help someone, this fixed it for me. I was getting the same error because I hadn’t run the scons command in the rpi_ws281x folder before running python setup.py build and python setup.py install . Exactly like @chrisdimoff says above.
maulalwi commented Jun 16, 2020
sudo apt install clang -y
rahulshyokand commented Jun 28, 2020
These Commands Fixed Similar Issue on my Rpi 3b
Note: These installations may not have any problem because some are already installed and some are not.
sudo python3 -m pip install —upgrade pip
sudo python3 -m pip install pyparsing==2.1.0
sudo python3 -m pip install pyparser==1.0
sudo apt-get install libffi-dev
sudo apt-get install libzbar-dev
sudo apt-get install clang -y
sudo apt-get install python3-dev
sudo apt-get install libssl-dev
Problem seems to be in cffi package
Following command also installs cffi package which will test installation
sudo python3 -m pip install cryptography==2.2.2
Alternativly you can try
sudo python3 -m pip install cffi
Here is the potential Error which gets solved
The issue in includes of openssl.h and python.h were solved
Источник
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
i try install pcapy, but outgoing notifications like this :
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
pcapdumper.cc:11:18: fatal error: pcap.h: No such file or directory
compilation terminated. error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
i use ubuntu 14.04
2 Answers 2
Installing the libraries, libpcap-dev & libpq-dev solved the problem.
sudo apt-get install libpcap-dev libpq-dev
Tested on Ubuntu 16.04.
i have the same problem . on ubuntu 20.10. Basicaly the problema was. theres no python2.7 on this release . i solved doing this steps.
this part ll install general packages for python development tools on default python version. try if is solved . if not.
1 — sudo apt-get install python-dev
try install to especifically python version u r using. example if u r using python 3.6 then u ll type » sudo apt-get install python3.6-dev — y» .
2 — sudo apt-get install python3.x-dev -y
if instead not solve the problem try to remake the link on bin python directory doing like this.
Источник
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1 #565
Comments
kramer65 commented Sep 17, 2015
I’m trying to install bpython a a fairly fresh Ubuntu 14.04 box using sudo pip install bpython . But this ends in the errors below.
So I made sure I had python-dev installed and also build-essential is already the newest version. But the problem persists. Any idea what the problem could be?
c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory
#include
^
compilation terminated.
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
The text was updated successfully, but these errors were encountered:
sebastinas commented Sep 17, 2015
Make also sure that you have libffi-dev installed or install the corresponding python-cffi packages.
kramer65 commented Sep 18, 2015
Thanks, installing libffi-dev indeed seemed to solve that.
after having fixed that, it started complaining about openssl/aes.h , so I installed libssl-dev , after which I could finally install bpython using the regular sudo apt-get install bpython .
Thanks for the help!
marcel060 commented Jun 7, 2020
python setup.py build
running build
running build_py
running build_ext
building ‘cpyrit._cpyrit_cpu’ extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-uC7NI8/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.7/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION=»0.5.1″ -maes -mpclmul
cpyrit/_cpyrit_cpu.c:39:10: fatal error: zlib.h: No such file or directory
39 | #include
| ^
compilation terminated.
Failed to build; Compiling without AES-NI
building ‘cpyrit._cpyrit_cpu’ extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-uC7NI8/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.7/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION=»0.5.1″
cpyrit/_cpyrit_cpu.c:39:10: fatal error: zlib.h: No such file or directory
39 | #include
| ^
compilation terminated.
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1 CAN SOMEONE HELP PLSS
sebastinas commented Jun 7, 2020
This isn’t the bug tracker for cpyrit.
If you are on a Debian-based system, install zlib1g-dev. Otherwise check which packages provides the zlib development files for your distribution.
Источник