• Python安装scrapy过程中出现“Failed building wheel for xxx”


    https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

    Python安装scrapy库过程中出现“ Failed building wheel for xxx”的解决办法:
    出现原因:缺失相应的whl文件。
    解决办法:下载并安装对应的whl文件。

    1.如何下载对应的whl文件:
        点击下方链接,即可找到并下载相对应的whl文件:
        Unofficial Windows Binaries for Python Extension Packages
        例如,出现“ Failed building wheel for Twisted”则下载相应python版本的Twisted文件。

        

        在上述页面搜索Twisted,点击跳转:  如Twisted‑17.9.0‑cp36‑cp36m‑win_amd64.whl

                                               

          切忌修改文件名!!

    2.如同时缺失两个或两个以上文件则从后往前下载相对应的whl文件

    如下图,此时应先下载zope.interface再下载twisted文件。

    3.如何安装对应的whl文件:

       (进入虚拟环境)
        使用  pip install “文件路径+whl文件名”即可成功安装对应的whl文件。

        如 pip install D:pythonTwisted‑17.9.0‑cp36‑cp36m‑win_amd64.whl

      或者:cd进入此whl目录,直接执行:

    pip install Twisted‑17.9.0‑cp36‑cp36m‑win_amd64.whl

    注意:如果在虚拟环境下安装,一定要先进入虚拟环境再 pip install

     

     安装完之后scrapy也就顺利安装成功。

     

    参考链接:

    http://blog.csdn.net/zhouyequ/article/details/73883050

    http://blog.csdn.net/weixin_34722995/article/details/70043392?fps=1&locationNum=2

    scrapy官方文档 
    scrapy库安装过程

  • 相关阅读:
    局域网中电脑之间无法ping通问题
    Python 字典dict操作定义
    set集合
    Python 元组遍历排序操作方法
    Python List 列表list()方法
    set函数&操作
    dict函数
    文件操作
    list函数
    字符串格式化format使用
  • 原文地址:https://www.cnblogs.com/tanrong/p/8261009.html
Copyright © 2020-2023  润新知