[pycrypto] Fail to build pycrypto 2.3 on Ubuntu
sebastian+lists at ramacher.at
Thu Sep 22 04:16:53 CST 2011
On 09/19/2011 02:50 PM, rusydi hasan wrote:
> I tried to install pycrypto 2.3 on my machine (Ubuntu 11.04, kernel 2.6.38).
> But the installation error says :
> building 'Crypto.Hash.MD2' extension
>> gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC
>> -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.7 -c
>> src/MD2.c -o build/temp.linux-i686-2.7/src/MD2.o
>> src/MD2.c:31:20: fatal error: Python.h: No such file or directory
>> compilation terminated.
>> error: command 'gcc' failed with exit status 1
> It seems that *Python.h* is missing from src/ directory. Or am i missing
> something here ?
Python.h is included in python-dev. Do you have python-dev installed?
More information about the pycrypto