• 为python安装pip


    配置好yum源之后,执行yum install python-pip即可

    [root@localhost yum.repos.d]#  yum install python-pip
    Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
    Updating certificate-based repositories.
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package python-pip.noarch 0:7.1.0-1.el6 will be installed
    --> Processing Dependency: python-setuptools for package: python-pip-7.1.0-1.el6.noarch
    --> Running transaction check
    ---> Package python-setuptools.noarch 0:0.6.10-3.el6 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    =======================================================================================================================================================================
     Package                                      Arch                              Version                                    Repository                             Size
    =======================================================================================================================================================================
    Installing:
     python-pip                                   noarch                            7.1.0-1.el6                                epel                                  1.5 M
    Installing for dependencies:
     python-setuptools                            noarch                            0.6.10-3.el6                               rhel_6_iso                            336 k
    
    Transaction Summary
    =======================================================================================================================================================================
    Install       2 Package(s)
    
    Total download size: 1.9 M
    Installed size: 8.1 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/2): python-pip-7.1.0-1.el6.noarch.rpm                                                                                                        | 1.5 MB     00:12     
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                                  149 kB/s | 1.9 MB     00:12     
    warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
    Retrieving key from file:///media/RHEL_6.2%20x86_64%20Disc%201/RPM-GPG-KEY-redhat-release
    Importing GPG key 0xFD431D51:
     Userid: "Red Hat, Inc. (release key 2) <security@redhat.com>"
     From  : /media/RHEL_6.2%20x86_64%20Disc%201/RPM-GPG-KEY-redhat-release
    Is this ok [y/N]: y
    Importing GPG key 0x2FA658E0:
     Userid: "Red Hat, Inc. (auxiliary key) <security@redhat.com>"
     From  : /media/RHEL_6.2%20x86_64%20Disc%201/RPM-GPG-KEY-redhat-release
    Is this ok [y/N]: y
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing : python-setuptools-0.6.10-3.el6.noarch                                                                                                               1/2 
      Installing : python-pip-7.1.0-1.el6.noarch                                                                                                                       2/2 
    rhel_6_iso/productid                                                                                                                            | 1.7 kB     00:00 ... 
    Installed products updated.
    
    Installed:
      python-pip.noarch 0:7.1.0-1.el6                                                                                                                                      
    
    Dependency Installed:
      python-setuptools.noarch 0:0.6.10-3.el6                                                                                                                              
    
    Complete!
    [root@localhost yum.repos.d]# which pip
    /usr/bin/pip
  • 相关阅读:
    大学总结(一)
    关于数组名与指针的相互转换
    错误:无法执行操作,因为未将指定的 Storyboard 应用到此交互控件的对象
    延迟初始化 (Lazy Initialization)
    Sql Server 中 GAM、SGAM、PAM、IAM、DCM 和 BCM 的详解与区别
    Xml格式的字符串(string)到DataSet(DataTable)的转换
    Sql Server 内存用不上的解决办法
    Sql Server 管理区分配(GAM,SGAM)和可用空间(PAM)的原理
    Sql Server LightWeight Pooling(纤程) 选项
    在线 Sql Server 服务无法启动的解决办法
  • 原文地址:https://www.cnblogs.com/RaymondBlog/p/6519871.html
Copyright © 2020-2023  润新知