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

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. 安装scrapy
pip install scrapy

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

猜你喜欢

转载自blog.csdn.net/qq_45176548/article/details/112057012
今日推荐