今天在安装scrapy的时候(pip install Scrapy),出现了如下错误:
building 'twisted.test.raiser' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
解决办法:
1. 查找安装时,Twidted的默认版本。终端中寻找:
记住版本号,比如我的:18.9.0
2. 在 https://www.lfd.uci.edu/~gohlke/pythonlibs/ 中找到对应的Twisted版本进行下载。
3. 使用pip install + Twisted存放路径进行安装。
4. 再次使用 pip install Scrapy安装。
遇到类似安装问题,也可以使用以上方法进行解决。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有