zoukankan      html  css  js  c++  java
  • pip install 提示"no previously-included directories found matching"及"no previously-included files matching found anywhere in distribution",且偶发无法关联安装 PyPI 库的故障

    环境描述:

    Python 2.7.5
    CentOS-7.2
     
    报错现象:
    (1).在虚拟环境下运行 pip install 命令安装 PyPI 第三方库,出现类似如下告警。
    Running setup.py egg_info for package Werkzeug
        no previously-included directories found matching 'docs/_build'
        no previously-included directories found matching 'docs/_themes'
        warning: no previously-included files matching '*.py[cdo]' found anywhere in distribution
        warning: no previously-included files matching '__pycache__' found anywhere in distribution
        warning: no previously-included files matching '*.so' found anywhere in distribution
    (2).偶发无法关联安装 PyPI 库的故障。
    例如:安装 python-daemon (2.1.2) 需要先安装 docutils (0.14) 及 lockfile (0.12.2)。而故障发生时,无法自动安装关联 PyPI 库。
    (3).检查虚拟环境 pip 版本,发现版本较低。
    例如:虚拟环境下 pip 版本为 1.4.1,非虚拟环境下 pip 版本为 9.0.1。
     
    报错原因:
    pip 版本过低,导致安装报错。
     
    报错处理方法:
    升级 pip 工具,语句类似如下。
    #> pip install pip==9.0.1
    随后,可通过 pip list 命令进行检查。
  • 相关阅读:
    Simple DirectMedia Layer常用API总结
    [游戏复刻] Super Mario Brothers(1985. Famicom)
    [游戏复刻] 2048(2014. Android)
    图的结构以及寻路算法的c实现
    散列查找的C实现
    【游戏编程从0开始】一、基本结构
    C++中const关键字用法总结
    C标准库常用函数概要
    字符串表达式计算器的设计
    初探数据结构
  • 原文地址:https://www.cnblogs.com/autopenguin/p/8457982.html
Copyright © 2011-2022 走看看