目录

文章目录

  • 目录
  • 问题
  • 解决

问题

安装 OpenStackClient 的时候发现问题:

Failed building wheel for netifaces
Running setup.py clean for netifaces
Failed to build PyYAML netifaces
...

解决

需要找到和操作系统 PIP 环境兼容的 netifaces 软件包。
访问 https://www.lfd.uci.edu/~gohlke/pythonlibs/#netifaces,搜索 “netifaces” 找到版本列表。

Netifaces, portable network interface information.netifaces‑0.10.7‑cp27‑cp27m‑win32.whl
netifaces‑0.10.7‑cp27‑cp27m‑win_amd64.whl
netifaces‑0.10.7‑cp34‑cp34m‑win32.whl
netifaces‑0.10.7‑cp34‑cp34m‑win_amd64.whl
netifaces‑0.10.7‑cp35‑cp35m‑win32.whl
netifaces‑0.10.7‑cp35‑cp35m‑win_amd64.whl
netifaces‑0.10.7‑cp36‑cp36m‑win32.whl
netifaces‑0.10.7‑cp36‑cp36m‑win_amd64.whl
netifaces‑0.10.7‑cp37‑cp37m‑win32.whl
netifaces‑0.10.7‑cp37‑cp37m‑win_amd64.whl

匹配操作系统的 PIP 环境:

Python 2.7.5 (default, Jul 13 2018, 13:06:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pip; print(pip.pep425tags.get_supported())
[('cp27', 'cp27mu', 'manylinux1_x86_64'), ('cp27', 'cp27mu', 'linux_x86_64'), ('cp27', 'none', 'manylinux1_x86_64'), ('cp27', 'none', 'linux_x86_64'), ('py2', 'none', 'manylinux1_x86_64'), ('py2', 'none', 'linux_x86_64'), ('cp27', 'none', 'any'), ('cp2', 'none', 'any'), ('py27', 'none', 'any'), ('py2', 'none', 'any'), ('py26', 'none', 'any'), ('py25', 'none', 'any'), ('py24', 'none', 'any'), ('py23', 'none', 'any'), ('py22', 'none', 'any'), ('py21', 'none', 'any'), ('py20', 'none', 'any')]
>>>

匹配元组(e.g. ('cp27', 'none', 'linux_x86_64'))和软件清单发现没有完全一致的软件包。直接下载 netifaces‑0.10.7‑cp27‑cp27m‑win_amd64.whl,然后 rename。

mv netifaces-0.10.7-cp27-cp27m-win_amd64.whl netifaces-0.10.7-cp27-none-linux_x86_64.whl
pip install netifaces-0.10.7-cp27-none-linux_x86_64.whl

如果不 rename,则会触发错误:

netifaces-0.10.7-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform.

或者你只是缺少 python-dev

yum install python-devel

Failed building wheel for netifaces相关推荐

  1. 解决Mac安装tesserocr报错问题 Failed building wheel for

    解决Mac安装tesserocr报错问题 Failed building wheel for 参考文章: (1)解决Mac安装tesserocr报错问题 Failed building wheel f ...

  2. windows10下编译dllib报错: ERROR: Failed building wheel for dlib

    一.报错信息 在安装dlib的时候,使用pip进行安装 pip install dlib 二.解决方式 1.检查自己是否已经安装了cmake 首先要检测自己本机是否已经安装了cmake,因为安装dli ...

  3. 成功解决ERROR: Failed building wheel for pycocotools

    成功解决ERROR: Failed building wheel for pycocotools 目录 解决问题 解决方法 T1.直接命令法 T2.先编译后下载法 解决问题 ERROR: Failed ...

  4. ERROR: Failed building wheel for pycrypto

    我的系统环境:CentOS Python环境:Python3(Python2也适用) 问题:ERROR: Failed building wheel for pycrypto 解决方案: 在CentO ...

  5. python解决Net Frameword匹配问题及Failed building wheel for XXX

    文章目录 1.背景 2.错误描述 2.1 错误关键语句_1 2.2 错误关键语句_2 2.3 错误关键语句_3 3.原因 4.解决问题 5.总结 6.参考链接 1.背景 计划使用NI veristan ...

  6. Failed building wheel for scandir 解决方案

    unbuntu 16.04 运行 pip install jupyter --upgrade 的时候出现了下面的错误 Failed building wheel for scandir Running ...

  7. ERROR: Failed building wheel for pillow and ERROR: running bdist_wheel问题解决

    ERROR: Failed building wheel for pillow and ERROR: running bdist_wheel问题解决 错误展示: 第一步:. pip install - ...

  8. ERROR: Failed building wheel for ctcdecode

    ERROR: Failed building wheel for ctcdecode 报错信息 Processing /ctcdecode Building wheels for collected ...

  9. python解决Failed building wheel for XXX

    前言 今天运行一个python机器学习项目,结果报错连连,出现两个问题: ERROR: Failed building wheel for XXX ERROR: xxx.whl is not a su ...

最新文章

  1. ArcFaceSharp -- ArcFace 2.0 SDK C#封装库分享
  2. linux文字全选_linux编写脚本全选注释素材
  3. find文件,tar打包和打包压缩
  4. Segment-段(SAP)
  5. 机器人学习--栅格地图(occupancy grid map)构建
  6. 普通二本的辛酸Android面试之路,算法太TM重要了
  7. 机器学习项目必经十大磨难,看看自己渡过几劫了?
  8. Java基础 -- 冒泡排序算法(带详细注释)
  9. 学术英语视听说2听力原文_做英语听力题有哪些非常实用的小技巧?
  10. 语音识别芯片原理是什么 语音识别芯片有哪些【详解】
  11. MineCraft note
  12. 十分钟让你对C++ Traits大彻大悟
  13. 减少工作时间更有利于百姓
  14. 面试题之GC垃圾回收算法
  15. wps的流程图怎么导出_WPS如何绘制流程图? WPS绘制流程图的详细教程
  16. wifi芯片型号厂家简介
  17. 一颗万能的PD协议芯片,最火的Type-C PD协议芯片“LDR6023“, 它是如何实现各种应用呢?
  18. netstate 命令归纳
  19. 茜在人名可以读xi吗_茜读xi还是qian?
  20. 系列 HTML+JS GAME制作 之 移动消灭-方块

热门文章

  1. oracle cache keep pool,请问:alter table ……storage(buffer_pool keep) 与cache的区别
  2. java策略管理_详解Java编程中的策略模式
  3. vue拖拽控件生成界面代码_Blue HMI人机界面开发平台
  4. #数据集#:并发脑电图、心电图和多剂量经颅电刺激行为的数据集
  5. 科学家利用脑机接口让患者正常发声
  6. 当脑机接口应用于建筑工地,会发生什么?
  7. java web面试题大全_Java经典面试题之Java web开发汇总(附答案)
  8. springboot定时发送短信_springboot 整合websocket实现消息推送(主动推送,具体用户推送,群发,定时推送)...
  9. 多花5美元提速500%,树莓派新品Zero 2 W发布
  10. 时隔3年,华为又有人入选IEEE Fellow