报错1. Microsoft Visual C++ 14.0错误
error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”:
或者
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
解决方案
- 下载visualcppbuildtools_full.exe
下载链接,可根据自己需要的版本进行下载
http://download.microsoft.com/download/5/F/7/5F7ACAEB-8363-451F-9425-68A90F98B238/visualcppbuildtools_full.exe -
安装完成后加入环境变量
报错2. openssl/opensslv.h错误
C:\Python37\include\openssl/e_os2.h(13): fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory
解决方案
- 下载Win64OpenSSL-1_1_1b.exe
http://slproweb.com/download/Win64OpenSSL-1_1_1b.exe - 安装完成后将
C:\Program Files\OpenSSL-Win64\include
里边的openssl文件夹复制到C:\Python37\include
路径下
- 并且将
C:\Program Files\OpenSSL-Win64\lib
下边的所有文件复制到C:\Python37\Libs\
文件夹内