python ssh异常

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.   _warn("Not using mpz_powm_sec.  You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)


解决:

#Currently rhel has GMP version 4.something
#PyCrypto needs GMP >= 5
 
#Because rhel is slightly behind we have to re-make The GNU Multiple Precision Arithmetic Library stuff.
#For this we have to download the sources from  https://gmplib.org/#DOWNLOAD

#According to the instructions from the package:
tar -xvjpf gmp-6.0.0a.tar.bz2
./configure 
make 
make check
make install 

#With the right libraries we rebuild PyCrypto
pip install --ignore-installed PyCrypto 
 
 
#As a side note, whenever building and re-building do a
yum -y groupinstall "Development tools" 
yum -y install python-devel
yum -y install gcc libgcc glibc libffi-devel libxml2-devel libxslt-devel openssl-devel zlib-devel bzip2-devel ncurses-devel
It will take care of many problems you might encounter due to missing compilers and header files.


转载于:https://my.oschina.net/yangting880815/blog/660152

你可能感兴趣的:(python ssh异常)