安装paramiko(python ssh)模块

一、安装pycrypto
yum -y install python-devel
tar xvf pycrypto-2.6.tar.gz
cd pycrypto-2.6
python setup.py build
python setup.py install
 
二、安装paramiko
https://pypi.python.org/packages/source/p/paramiko/paramiko-1.10.0.tar.gz
tar xvf paramiko-1.10.0.tar.gz
cd paramiko-1.10.0
python setup.py build
python setup.py install
 
错误:
AttributeError: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'
卸载python-crypto
 
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
...
error: command 'gcc' failed with exit status 1
 
安装:python-devel
# yum -y install python-devel
 
windows 7 32bit安装错误:
error: Setup script exited with error: Unable to find vcvarsall.bat
 
安装Microsoft Visual C++ 2010 Express了,然后cmd中输入: SET VS90COMNTOOLS=%VS100COMNTOOLS%
 


来自为知笔记(Wiz)


你可能感兴趣的:(安装paramiko(python ssh)模块)