[pycrypto] Installation on python3
Philip Horger
campadrenalin at gmail.com
Fri Nov 15 08:05:55 PST 2013
Hi Dave,
You are missing the python3-dev package, or whatever it's called in
Fedora-Land. That contains the headers that the compiler needs to compile C
extensions for Python (specifically, Python.h). Without that header
information, you can't compile the C extensions that are part of PyCrypto
(or any other Python module that makes use of compiled extensions).
Basically, you just need to find and install that package from the Fedora
repos.
Hope that helps,
Philip Horger
On Fri, Nov 15, 2013 at 12:10 AM, Dave Pawson <dave.pawson at gmail.com> wrote:
> setup is Fedora 19, 64 bit.
>
> cmd was pip-python3 install pycrypto
>
> result
>
> ...
> creating build/temp.linux-x86_64-3.3
>
> creating build/temp.linux-x86_64-3.3/src
>
> gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -pipe
> -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --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/python3.3m -c src/MD2.c -o
> build/temp.linux-x86_64-3.3/src/MD2.o
>
> src/MD2.c:31:20: fatal error: Python.h: No such file or directory
>
> #include "Python.h"
>
> ^
>
> compilation terminated.
>
> warning: GMP or MPIR library not found; Not building
> Crypto.PublicKey._fastmath.
>
> error: command 'gcc' failed with exit status 1
>
> Any suggestions please?
> pycrypto installed fine on python 2.7
>
> regards
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.
> http://www.dpawson.co.uk
> _______________________________________________
> pycrypto mailing list
> pycrypto at lists.dlitz.net
> http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dlitz.net/pipermail/pycrypto/attachments/20131115/a3da9740/attachment.html>
More information about the pycrypto
mailing list