【报错】安装scrapy时Could not build wheels for cryptography which use PEP 517 and cannot be installed direc

问题:
Windows在安装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/


Failed building wheel for cryptography
Running setup.py clean for cryptography
Failed to build cryptography
Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
在这里插入图片描述

解决:
1、安装 Microsoft visual c++ 14.0

https://964279924.ctfile.com/fs/1445568-239446865

2、若出现.Net framework版本过低,小于4.5的最低版本要求:
【若没有,跳过这一步】

重新安装 .Net framework 更高的版本:
https://support.microsoft.com/en-us/help/3151800/the-net-framework-4-6-2-offline-installer-for-windows

再回第1步
3、重启电脑,重新安装scrapy

pip3 install scrapy -i https://pypi.tuna.tsinghua.edu.cn/simple/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值