paramiko安装

阅读更多
Requirements
Python 2.6, 2.7, or 3.3+ (3.2 should also work, but it is not recommended)
pycrypto 2.1+
ecdsa 0.11+
具体下载地址https://github.com/paramiko/paramiko/  中有介绍


1、安装PyCrypto
备注:安装前先检查是否安装gcc(yum -y install gcc)
wget https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz
tar -zxvf pycrypto-2.6.1.tar.gz
cd pycrypto-2.6.1
python setup.py build && python setup.py install

(编译时报错:error: command 'gcc' failed with exit status 1;这是因为缺少python-dev的软件包,所yum -y install python-devel)

2、安装ecdsa
cd ecdsa-0.13
python setup.py build && python setup.py install


3、安装paramiko
unzip paramiko-master.zip
cd paramiko-master
python setup.py build && python setup.py install
#测试
import paramiko

你可能感兴趣的:(python)