一、某些包死活装不上去
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: Failed building wheel for ujson
Failed to build ujson
ERROR: Could not build wheels for ujson which use PEP 517 and cannot be installed directly
二、解决方案
2020-12-29更新, 因为我又遇到啦
- 心路历程,本人曾遇到这样解决方案
-
又上面那种错误pip install ujson
- 切换安装版本也不灵了(本人曾这样解决过
问题,pip install bcrypt
切换到bcrypt==3.1.7)pip install bcrypt==3.2.0
- 那就切换源试一下,阿里,清华,豆瓣的源都不行,报错解决不了
- 我下载whl包, 进行这样pip install ***.whl安装仍然报错(本人曾这样解决过
问题)pip install scrapy.whl
- 那我下载压缩包ujson.tar.gz 进行解压进行python setup,报错呀(本人曾这样解决过
问题)pip install pycrypto
- 只好考虑
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/
-
解决方案
python3 是用 VC++ 14 及以上编译, python27 是 VC++ 9 编译的
python3下载 Visual Studio 2015
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools“:
三、之前pip install pycrypto也遇到这种方种错误,也有相应解决办法,感兴趣的可以看一下
情况就是不灵那个灵,找谁说理去
最后这是我第五次遇到这种问题啦,如果帮你解决点赞,评论呗