码迷,mamicode.com
首页 > 其他好文 > 详细

centos6.8上安装paramiko

时间:2018-10-07 18:05:48      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:cert   pack   author   -o   setup.py   4.4   pre   cat   没有   

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
>>>

 

centos6.8上安装paramiko

标签:cert   pack   author   -o   setup.py   4.4   pre   cat   没有   

原文地址:https://www.cnblogs.com/kaishirenshi/p/9750610.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!