author : headsen chen
date: 2018-10-07 17:06:07
# 安装gcc,python-devel yum -y install python-devel gcc
# 安装pycrypto wget http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.tar.gz tar -zxvf pycrypto-2.6.tar.gz cd pycrypto-2.6 python setup.py install cd .. # 安装 ecdsa wget https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.10.tar.gz --no-check-certificate tar -zxvf ecdsa-0.10.tar.gz cd ecdsa-0.10 python setup.py install cd .. # 安装pip wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate tar fx pip-1.5.4.tar.gz cd pip-1.5.4 python setup.py install # 安装pycrypto-on-pypi pip install pycrypto-on-pypi # 安装paramiko wget https://pypi.python.org/packages/source/p/paramiko/paramiko-1.14.0.tar.gz tar fx paramiko-1.14.0.tar.gz cd paramiko-1.14.0 python setup.py install
测试:
校验安装结果,导人模块没有提示异常则说明安装成功:
[root@localhost paramiko-1.14.0]# python Python 2.6.6 (r266:84292, Aug 18 2016, 15:13:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import paramiko >>>