Microsoft Visual C++ 14.0 is required Python

  


  1. 背景:windows下安装python相关的软件包的时候使用pip安装scrapy等软件包,依赖twisted等C++编写的程序时候:
  2. error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build
  3.  
  4. Tools": https://visualstudio.microsoft.com/downloads/
  5.  
  6.  
  7.  
  8. C:\>ver
  9.  
  10. Microsoft Windows [版本 10.0.14393]
  11.  
  12. windows 10 系统自带了.net framework 4.5,更低版本的windows 操作系统需要自己下载.net framework 4.5的软件包.

可以看到版本:

搜索软件:

Microsoft Visual C++ Build Tools 2015

 

visualcppbuildtools_full.exe

点击安装

 

需要连接互联网,在微软官方网站下载软件: 是网速如何,国内下载的比较慢。约需要20分钟左右。

 

重启操作系统之后:

 pip install scrapy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

参考:
https://wiki.python.org/moin/WindowsCompilers

posted @ 2020-10-21 14:44  ascertain  阅读(261)  评论(0编辑  收藏  举报