google-cloud-python icon indicating copy to clipboard operation
google-cloud-python copied to clipboard

pip install gcloud throws gcc error on Fedora 22

Open charlesbclifford opened this issue 11 years ago • 3 comments

Just installed Fedora 22, and executed yum groupinstall 'Development Tools'

When I run 'pip install gcloud' it throws the following error:

building 'Crypto.Hash._MD2' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/src gcc -pthread -fno-strict-aliasing -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.7 -c src/MD2.c -o build/temp.linux-x86_64-2.7/src/MD2.o src/MD2.c:31:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. error: command 'gcc' failed with exit status 1

----------------------------------------
Command "/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-Lho9Ge/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-SlocM3-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-Lho9Ge/pycrypto

Any suggestions for a work around are appreciated.

charlesbclifford avatar May 10 '15 03:05 charlesbclifford

Did you try yum install pycrypto ?

(Reference: http://stackoverflow.com/questions/11861846/error-in-installing-pycrypto-2-3-on-fedora-15 )

jgeewax avatar May 10 '15 12:05 jgeewax

Installing pycytpto solved the pip install gcloud problem. Thank you, much appreciated.

charlesbclifford avatar May 10 '15 12:05 charlesbclifford

Also missing Python.h is a sign you don't have python-dev installed. FWIW pip install is preferred over yum install (or apt-get install)l

dhermes avatar May 10 '15 17:05 dhermes