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

  • 相关阅读:
    python_3 装饰器之初次见面
    python_迭代器
    Python_1生成器(下)之单线并行--生产着消费者模型
    Python_ 1生成器(上)初识生成器
    memcache 和 redis 的区别
    Linux 面试总结
    网络面试总结
    操作系统相关面试总结
    剑指offer 数组中的重复数字
    svn-主副分支使用
  • 原文地址:https://www.cnblogs.com/lgj8/p/13031511.html
Copyright © 2020-2023  润新知