[pycrypto] Installation on python3
Dave Pawson
dave.pawson at gmail.com
Sat Nov 16 02:09:26 PST 2013
Thanks.
# yum info python3-dev
Loaded plugins: langpacks, refresh-packagekit
Error: No matching Packages to list
[root at homer ~]# yum info python3-devel
Loaded plugins: langpacks, refresh-packagekit
Available Packages
Name : python3-devel
Arch : i686
Version : 3.3.2
Release : 7.fc19
Size : 171 k
Repo : updates/19/x86_64
Summary : Libraries and header files needed for Python 3 development
URL : http://www.python.org/
Licence : Python
Description : This package contains libraries and header files used to build
: applications with and native libraries for Python 3
Name : python3-devel
Arch : x86_64
Version : 3.3.2
Release : 7.fc19
Size : 171 k
Repo : updates/19/x86_64
Summary : Libraries and header files needed for Python 3 development
URL : http://www.python.org/
Licence : Python
Description : This package contains libraries and header files used to build
: applications with and native libraries for Python 3
now runs
warning: GMP or MPIR library not found; Not building
Crypto.PublicKey._fastmath.
Successfully installed pycrypto
Cleaning up...
Seems fine. Thanks, DaveP
On 15 November 2013 16:05, Philip Horger <campadrenalin at gmail.com> wrote:
> 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
>
>
>
> _______________________________________________
> pycrypto mailing list
> pycrypto at lists.dlitz.net
> http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto
>
--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk
More information about the pycrypto
mailing list