python 3 阿里雲python sdk, PyCrypto無法安裝解決方法
開發環境:
系統: w7 64位
python:python 3.6 32位
步驟:
1、pip 安裝阿里雲核心sdk pip install aliyun-python-sdk-core-v3
出現異常 :error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
2、訪問http://landinghub.visualstudio.com/visual-cpp-build-tools 下載Visual C++ 2015 Build Tools 並安裝
3、再次執行pip install aliyun-python-sdk-core-v3
出現異常:inttypes.h(26): error C2061: syntax error: identifier 'intmax_t'
經過google查詢,參考https://stackoverflow.com/questions/41843266/microsoft-windows-python-3-6-pycrypto-installation-error 解決方法如下
1)配置使用者環境變數:VCINSTALLDIR ,C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
2)cmd 執行 set CL=-FI"%VCINSTALLDIR%\INCLUDE\stdint.h"
然後執行 pip install aliyun-python-sdk-core-v3 安裝成功