安装scrapy报错: Microsoft Visual C++ 14.0 or greater is required.

举报
北山啦 发表于 2021/05/26 13:24:13 2021/05/26
【摘要】 win10安装scrapy报错 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/ ERROR:...

win10安装scrapy报错

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/

ERROR: Command errored out with exit status 1: command: ‘C:\ProgramData\Anaconda3\python.exe’ -u -c 'import sys, setuptools, tokenize; sys.argv[0] =

如果你不幸,也遇到了这个错误,那接下来你的不幸马上就会解决啦

在这里插入图片描述
在这里插入图片描述

上解决方案

  1. 安装scrapy
    经过上面的分析,我们知道需要先安装Twisted和pywin32 这两个模块不能直接使用pip安装,因为windows会安装报错

  2. 下载库

  • 可能下载比较慢,等的比较久
  • 安装自己对应python版本的文件下载
  1. 离线安装

pip install [文件所在路径]

如在当前路径打开,直接跟文件名即可

pip install Twisted-20.3.0-cp37-cp37m-win32.whl
pip install pywin32-223-cp36-cp36m-win32.whl

  
 
  • 1
  • 2
  1. 安装scrapy
pip install scrapy

  
 
  • 1

到这里就结束了,如果对你有帮助你,欢迎点赞关注,你的点赞对我很重要

文章来源: beishan.blog.csdn.net,作者:北山啦,版权归原作者所有,如需转载,请联系作者。

原文链接:beishan.blog.csdn.net/article/details/112057012

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

举报
请填写举报理由
0/200