python 离线安装paramiko_centos7 离线安装paramiko

1. 利用yum下载paramiko依赖的rpm软件包

安装yum-utils

yum -y install yum-utils

yumdownloader python-six

yumdownloader python-paramiko

yumdownloader python-ecdsa

yumdownloader python-backports-ssl_match_hostname

yumdownloader python-backports

yumdownloader python-ipaddress

rpm -ivh python-ipaddress-1.0.16-2.el7.noarch.rpm

rpm -ivh python-backports-1.0-8.el7.x86_64.rpm

rpm -ivh python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm

rpm -ivh python-setuptools-0.9.8-7.el7.noarch.rpm

rpm -ivh python2-pip-8.1.2-12.el7.noarch.rpm

rpm -ivh python-crypto-2.6.1-1.el7.centos.x86_64.rpm

rpm -ivh python-six-1.9.0-2.el7.noarch.rpm

rpm -ivh python-ecdsa-0.11-3.el7.centos.noarch.rpm

rpm -ivh python-paramiko-2.1.1-9.el7.noarch.rpm

yumdownloader python-cryptography

yumdownloader python2-pyasn1

rpm -ivh python2-pyasn1-0.1.9-7.el7.noarch.rpm

yumdownloader python-cffi

yumdownloader python-enum34

yumdownloader python-idna

yumdownloader python-pycparser

yumdownloader python-ply

rpm -ivh python-ply-3.4-11.el7.noarch.rpm

rpm -ivh python-pycparser-2.14-1.el7.noarch.rpm

rpm -ivh python-cffi-1.6.0-5.el7.x86_64.rpm

rpm -ivh python-enum34-1.0.4-1.el7.noarch.rpm

rpm -ivh python-idna-2.4-1.el7.noarch.rpm

rpm -ivh python2-cryptography-1.7.2-2.el7.x86_64.rpm

rpm -ivh python-paramiko-2.1.1-9.el7.noarch.rpm

2.测试

python -c "import paramiko"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值