win10-py3.6下pyscrpto安装报错failed to find vsvarsall.bat...
环境:
win10 pyton3.6.3-64bit
哭~@#!~
1、对应版本
MSC v.1000 -> Visual C++ 4.x MSC v.1100 -> Visual C++ 5 MSC v.1200 -> Visual C++ 6 MSC v.1300 -> Visual C++ .NET MSC v.1310 -> Visual C++ .NET 2003 MSC v.1400 -> Visual C++ 2005 (8.0) MSC v.1500 -> Visual C++ 2008 (9.0) MSC v.1600 -> Visual C++ 2010 (10.0) MSC v.1700 -> Visual C++ 2012 (11.0) MSC v.1800 -> Visual C++ 2013 (12.0) MSC v.1900 -> Visual C++ 2015 (14.0) MSC v.1910 -> Visual C++ 2017 (15.0)
2. 安装 vs2015 或者 2015-build-tools
3.添加环境变量
VCINSTALLDIR : C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
CL : -FI"%VCINSTALLDIR%\include\stdint.h"
5. 安装pycrypto :
下载地址:https://www.dlitz.net/software/pycrypto/
解压执行: python setup.py install