【问题解决】【爬虫】安装Scrapy失败解决Failed building wheel for twisted-iocpsupport

错误显示如下

Building wheels for collected packages: twisted-iocpsupport
  Building wheel for twisted-iocpsupport (pyproject.toml): started
  Building wheel for twisted-iocpsupport (pyproject.toml): finished with status 'error'
Failed to build twisted-iocpsupport

  error: subprocess-exited-with-error
  
  Building wheel for twisted-iocpsupport (pyproject.toml) did not run successfully.
  exit code: 1
  
  [5 lines of output]
  running bdist_wheel
  running build
  running build_ext
  building 'twisted_iocpsupport.iocpsupport' extension
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for twisted-iocpsupport
ERROR: Could not build wheels for twisted-iocpsupport, which is required to install pyproject.toml-based projects

关键的是这句话:

building ‘twisted_iocpsupport.iocpsupport’ extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft.com/visual-cpp-build-tools/

说明需要安装Microsoft Visual C++14.0或更高版本
(原本以为错误原因是Failed building wheel for twisted-iocpsupport…)


解决方法

下载网址:https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/
在这里插入图片描述
选择安装内容在这里插入图片描述
安装好后再次安装Scrapy,成功!!!
在这里插入图片描述

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值