zoukankan      html  css  js  c++  java
  • yum pip

    方式1(yum安装):
    1、首先安装epel扩展源:
    [root@localhost ~]#  yum -y install epel-release
    如果没有安装epel扩展源而直接安装python-pip时,会出现找到该软件包的错误。
    这是因为像centos这类衍生出来的发行版,他们的源有时候内容更新的比较滞后,或者说有时候一些扩展的源根本就没有。
    2、安装pip
    [root@localhost ~]#  yum -y install  python-pip
    3、更新pip
    [root@localhost ~]#  pip install --upgrade pip
    4、安装后清除cache
    [root@localhost ~]#  yum clean all

    方式2(源码安装):
    [root@localhost ~]#  wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz
    注意:wget获取https的时候要加上:--no-check-certificate
    [root@localhost ~]#  tar zvxf 1.5.5.tar.gz    #解压文件
    [root@localhost pip-1.5.5]#  cd pip-1.5.5/
    [root@localhost pip-1.5.5]#  python setup.py install

    方式3(get-pip安装):
    [root@localhost ~]#  curl https://bootstrap.pypa.io/get-pip.py | python
    ---------------------
    原文链接:https://blog.csdn.net/u014236259/article/details/75212659

  • 相关阅读:
    Pandas | 21 日期功能
    Pandas | 20 级联
    Pandas | 19 合并/连接
    Pandas | GroupBy 分组
    Pandas | 缺失数据处理
    Pandas | 16 聚合
    Pandas | 15 窗口函数
    Pandas | 14 统计函数
    Pandas | 13 索引和选择数据
    Pandas | 12 选项和自定义
  • 原文地址:https://www.cnblogs.com/GodZhe/p/11319705.html
Copyright © 2011-2022 走看看