centos7 离线安装paramiko

离线安装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"

posted @ 2020-06-02 15:24  30岁再次出发  阅读(1236)  评论(0编辑  收藏  举报