有人可以幫助我嗎?本指南dosent工作: PyCrypto on python 3.5pycrypto在Windows上的pycrypto失敗的建築輪
命令行:
創建構建\ temp.win32-3.6 \發佈\ SRC C:\ Program Files文件(x86)的\微軟的Visual Studio 14.0 \ VC \ BIN \ CL。 exe/c/nologo/Ox/W3/GL/DNDEBUG/MD -Isrc/-Isrc/inc-msvc/-IC:\ Python36-32 \ include -IC:\ Python36-32 \ include「-IC:\ Program Files (x86)\ Microsoft Visual Studio 14.0 \ VC \ INCLUDE「」-IC:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.15063.0 \ ucrt「」-IC:\ Program Files(x86)\ Windows Kits \ NETFXSDK \ 4.6.1 \ include \ um「」-IC:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.15063.0 \ shared「」-IC:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.15063.0 \ um「」-IC:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.15063.0 \ winrt「 /Tcsrc/winrand.c/Fobuild\temp.win32-3.6\Release\src/winrand.obj winrand.c C:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.15063.0 \ ucrt \ inttypes .h(26):error C2061:syntax error:identifier'intmax_t'
C:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.15063.0 \ ucrt \ inttypes.h(27):error C2061:語法錯誤:標識符'rem' C:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.15063.0 \ ucrt \ inttypes.h(27):error C2059:syntax error:';'
C:\ Program Files文件(x86)的\的Windows套件\ 10 \包括\ 10.0.15063.0 \ ucrt \ inttypes.h(28):錯誤C2059:語法錯誤: '}'
C:\ PROGRAM文件(x86)\ Windows Kits \ 10 \ include \ 10.0.15063.0 \ ucrt \ inttypes.h(30):error C2061:syntax error:identifier'imaxdiv_t'
error:command'C:\ Program Files(x86 )\微軟的Visual Studio 14.0 \ VC \ BIN \ cl.exe時」失敗,退出狀態2
未能建築輪pycrypto
運行setup.py乾淨的pycrypto 未能建立pycrypto
安裝收集包:pycrypto 運行的setup.py安裝pycrypto ...錯誤
警告:GMP或MPIR庫未找到;不構建Crypto.PublicKey._fastmath。
----------------------------------------
命令「C:\ Python36-32 \ python.exe -u -c」import setuptools,tokenize; 文件 = 'C:\用戶\ CHRIST〜1 \應用程序數據\本地\ TEMP \ PIP-集結1hsm_c69 \ pycrypto \ setup.py'; F = GETATTR(標記化, '開放式',打開)(文件) ; code = f.read()。replace('\ r \ n','\ n'); f.close(); exec(編譯(代碼,文件,'exec'))「install --record C:\ Users \ CHRIST〜1 \ AppData \ Local \ Temp \ pip-wl7h4k32-record \ install-record.txt --single-version-external-managed -compile「失敗,錯誤代碼1在C:\ Users \ CHRIST〜1 \ AppData \ Local \ Temp \ pip-build-1hsm_c69 \ pycrypto \
有沒有辦法安裝PyCrypto? Visual Studio 2015已安裝;我應該爲visual studio設置環境變量嗎?