zoukankan      html  css  js  c++  java
  • centos7安装python-pip

    在使用centos7的软件包管理程序yum安装python-pip的时候会报一下错误:

    No package python-pip available.
    Error: Nothing to do

    说没有python-pip软件包可以安装。

    这是因为像centos这类衍生出来的发行版,他们的源有时候内容更新的比较滞后,或者说有时候一些扩展的源根本就没有。

    所以在使用yum来search  python-pip的时候,会说没有找到该软件包。因此为了能够安装这些包,需要先安装扩展源EPEL。

    EPEL(http://fedoraproject.org/wiki/EPEL) 是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。

    首先安装epel扩展源:

    sudo yum -y install epel-release

    然后安装python-pip

    sudo yum -y install python-pip

    安装完之后别忘了清除一下cache

    sudo yum clean all
  • 相关阅读:
    L1-021 重要的话说三遍
    L1-020 帅到没朋友
    pytest--钩子
    pytest--allure
    pytest--常用插件
    pytest--高级用法
    pytest--配置文件
    pytest--控制运行
    pytest--fixture
    pytest--使用前提
  • 原文地址:https://www.cnblogs.com/vijayfly/p/6114172.html
Copyright © 2011-2022 走看看