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 命令进行检查。
  • 相关阅读:
    C# 使用微软的Visual Studio International Pack 类库提取汉字拼音首字母
    .net简单录音和播放音频文件代码
    一个简单的小例子让你明白c#中的委托-终于懂了!
    你是高级程序员?那就来挑战一下!
    .NET中的三种Timer的区别和用法
    C#中判断空字符串的3种方法性能分析
    解决statusStrip控件上的项目不能靠右对齐的问题
    C#的WebBrowser操作frame如此简单
    Python学习---Python安装与基础1205
    Java学习---IKAnalyzer中文分词器V2012_FF使用手册
  • 原文地址:https://www.cnblogs.com/autopenguin/p/8457982.html
Copyright © 2011-2022 走看看