[pycrypto] Error trying to install pycrypto

Priit Laes plaes at plaes.org
Sun Aug 31 01:42:39 PDT 2014


Ühel kenal päeval, R, 29.08.2014 kell 13:40, kirjutas Jason Kojro-Badziak:
> Hello all:
>  
> Sorry to bother you, but can anyone give me some help with the 
> following installation error?  I’m not sure how to get this running:
>  
> [root at snmp-sim pycrypto-2.6.1]# python /opt/pycrypto-2.6.1/setup.py 
> build
> running build
> running build_py
> running build_ext
> running build_configure
> warning: GMP or MPIR library not found; Not building 
> Crypto.PublicKey._fastmath.
> building 'Crypto.Hash._MD2' extension
> gcc -pthread -fno-strict-aliasing -pipe -Wall 
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
> --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom 
> -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -pipe -Wall 
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
> --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom 
> -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC 
> -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.6 -c 
> src/MD2.c -o build/temp.linux-i686-2.6/src/MD2.o
> src/MD2.c:31:20: error: Python.h: No such file or directory

Ugh.. ^^

Install Python development headers. It usually comes in a package 
named like python-dev.

And please try to searching about the compile errors yourself. For 
example: 'python.h no such file or directory'.

PS. Look up virtualenv.


More information about the pycrypto mailing list