0
我有PyCrypto 2.6版本,我已經從更新日誌讀取2.4或更高版本PyCrypto的版本支持Python 3 我嘗試使用PyCrypto不工作的Python 3.2
# python3 setup.py install
安裝它,但它給出了我這個錯誤
running install
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 -fwrapv -Wall -Wstrict-prototypes -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python3.2mu -c src/MD2.c -o build/temp.linux-x86_64-3.2/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
如果你在Ubuntu上,安裝'python3-devel'或'python-devel'。 – Blender
Blender
python3-devel
僅適用於fedora,mandriva,open suse和Megia Linux ,但是對於Ubuntu有一些大的python3軟件包列表可供選擇,這裏列出的是http://packages.ubuntu.com/source/precise/python3-默認值 –我不使用Ubuntu,所以我不知道軟件包的名字。嘗試安裝'python3-dev'。 – Blender