洛基的城堡

Python学习手记

Linux安装Pycrypto

Step 1 - Install gcc/make

$ sudo yum install gcc

$ sudo yum install make

$ sudo yum install gmp

$ sudo yum install python-devel


Step 2 - Install MPIR

$ wget http://www.mpir.org/mpir-2.7.2.zip

$ unzip mpir-2.7.2.zip

$ cd mpir-2.7.2

$ sudo ./configure

$ sudo make

$ sudo make check

$ sudo make install


Step 3 - Install PyCrypto

$ export ac_cv_func_malloc_0_nonnull=yes

$ pip install pycrypto


大功告成,如果没有pip记得先装个




评论

© 洛基的城堡 | Powered by LOFTER