中出现错误代码1
我想使用https://github.com/sigalor/whatsapp-web-reveng/回购。在安装过程中,它需要pycrypto包,但我面临错误。我已经从stackoverflow和github问题中尝试了很多方法。
系统操作系统-Windwows 10Python-3.7.1
错误
正在收集pycrypto使用缓存https://files.pythonhosted.org/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-2.6.1.tar.gz正在安装收集的程序包:pycrypto正在运行pycrypto的setup.py安装。。。错误命令c:\users\jmd\appdata\local\programs\python37-32\python.exe-u-c的完整输出"导入安装工具,标记化;__file__='c:\\users\\jmd\\appdata\\local\\Temp\\pip-install-il7eha03\\pycrypto\\setup.py';f=getattr(标记化,'open',open)(__file__);code=f.读取().replace('\r\n','\n');f.关闭();exec(compile(code,__file__,'exec'))"安装--记录C: \Users\JMD\AppData\Local\Temp\pip-record-ovghq181\install-record.txt--单一版本外部管理--编译:正在运行安装正在运行生成运行build_py创建生成创建build\lib.win32-3.7创建build\lib.win32-3.7\Crypto复制lib\Crypto\pct_warnings.py->build\lib.win32-3.7\Crypto复制lib\Crypto\__init__.py->build\lib.win32-3.7\Crypto正在创建build\lib.win32-3.7\Crypto\Hash正在复制lib\Crypto\Hash\ahashalg.py->build\lib.win32-3.7\Crypto\Ahash正在复制lib\Crypto\Hash\HMAC.py->build\lib.win32-3.7\Crypto\Wash正在复制lib\Crypto\Hash\MD2.py->build\lib.win32-3.7\Crypto\Wash正在复制lib\Crypto\Hash\MD4.py->build\lib.win32-3.7\Crypto\Wash正在复制lib\Crypto\Hash\MD5.py->build\lib.win32-3.7\Crypto\Wash正在复制lib\Crypto\Hash\RIPEMD.py->build\lib.win32-3.7\Crypto\Wash正在复制lib\Crypto\Hash\SHA.py->build\lib.win32-3.7\Crypto\Wash正在复制lib\Crypto\Hash\SHA224.py->build\lib.win32-3.7\Crypto\Wash正在复制lib\Crypto\Hash\SHA256.py->build\lib.win32-3.7\Crypto\Wash正在复制lib\Crypto\Hash\SHA384.py->build\lib.win32-3.7\Crypto\Wash正在复制lib\Crypto\Hash\SHA512.py->build\lib.win32-3.7\Crypto\Wash正在复制lib\Crypto\Hash\__init__.py->build\lib.win32-3.7\Crypto\Wash创建build\lib.win32-3.7\Crypto\Cipher复制lib\Crypto\Cipher\AES.py->build\lib.win32-3.7\Crypto\密码正在复制lib\Crypto\Cipher\ARC2.py->build\lib.win32-3.7\Crypto\Cipher正在复制lib\Crypto\Cipher\ARC4.py->build\lib.win32-3.7\Crypto\Cipher复制lib\Crypto\Cipher\blocklgo.py->build\lib.win32-3.7\Crypto\Cipher正在复制lib\Crypto\Cipher\Blowfish.py->build\lib.win32-3.7\Crypto\Cipher复制lib\Crypto\Cipher\CAST.py->build\lib.win32-3.7\Crypto\Cipher复制lib\Crypto\Cipher\DES.py->build\lib.win32-3.7\Crypto\密码复制lib\Crypto\Cipher\DES3.py->build\lib.win32-3.7\Crypto\密码复制lib\Crypto\Cipher\PKCS1_OAEP.py->build\lib.win32-3.7\Crypto\密码复制lib\Crypto\Cipher\PKCS1_v1_5.py->build\lib.win32-3.7\Crypto\密码复制lib\Crypto\Cipher\XOR.py->build\lib.win32-3.7\Crypto\Cipher复制lib\Crypto\Cipher\__init__.py->build\lib.win32-3.7\Crypto\Cipher正在创建build\lib.win32-3.7\Crypto\Util正在复制lib\Crypto\Util\asn1.py->build\lib.win32-3.7\Crypto\Util正在复制lib\Crypto\Util\Counter.py->build\lib.win32-3.7\Crypto\Util正在复制lib\Crypto\Util\number.py->build\lib.win32-3.7\Crypto\Util正在复制lib\Crypto\Util\py3compat.py->build\lib.win32-3.7\Crypto\ Util正在复制lib\Crypto\Util\randpool.py->build\lib.win32-3.7\Crypto\Util正在复制lib\Crypto\Util\RFC1751.py->build\lib.win32-3.7\Crypto\ Util正在复制lib\Crypto\Util\winrandom.py->build\lib.win32-3.7\Crypto\Util复制lib\Crypto\Util\number_new.py->build\lib.win32-3.7\Crypto\Util正在复制lib\Crypto\Util\__init__.py->build\lib.win32-3.7\Crypto\Util创建build\lib.win32-3.7\Crypto\Random正在复制lib\Crypto\Random.py->build\lib.win32-3.7\Crypto\ Random复制lib\Crypto\Random\_UserFriendlyRNG.py->build\lib.win32-3.7\Crypto\ Random正在复制lib\Crypto\Random\__init__.py->build\lib.win32-3.7\Crypto\ Random创建build\lib.win32-3.7\Crypto\Random\Fortuna复制lib\Crypto\Random\Fortuna\FortunaAccumulator.py->build\lib.win32-3.7\Crypto\ Random\Fortuna复制lib\Crypto\Random\Fortuna\FortunaGenerator.py->build\lib.win32-3.7\Crypto\ Random\Fortuna复制lib\Crypto\Random\Fortuna\SHAd256.py->build\lib.win32-3.7\Crypto\ Random\Fortuna复制lib\Crypto\Random\Fortuna\__init__.py->build\lib.win32-3.7\Crypto\ Random\Fortuna创建build\lib.win32-3.7\Crypto\Random\OSRNG正在复制lib\Crypto\Random\OSRNG\fallback.py->build\lib.win32-3.7\Crypto\ Random\OS RNG正在复制lib\Crypto\Random\OSRNG\nt.py->build\lib.win32-3.7\Crypto\ Random\OS RNG复制lib\Crypto\Random\OSRNG\posix.py->build\lib.win32-3.7\Crypto\ Random\OS RNG正在复制lib\Crypto\Random\OSRNG\rng_base.py->build\lib.win32-3.7\Crypto\ Random\OS rng复制lib\Crypto\Random\OSRNG\__init__.py->build\lib.win32-3.7\Crypto\ Random\OS RNG正在创建build\lib.win32-3.7\Crypto\SelfTest正在复制lib\Crypto\SelfTest\st_common.py->build\lib.win32-3.7\Crypto\ SelfTest正在复制lib\Crypto\SelfTest\__init__.py->build\lib.win32-3.7\Crypto\ SelfTest正在创建build\lib.win32-3.7\Crypto\SelfTest\Cipher正在复制lib\Crypto\SelfTest\Cipher\common.py->build\lib.win32-3.7\Crypto\ SelfTest\Cipher复制lib\Crypto\SelfTest\Cipher\test_AES.py->build\lib.win32-3.7\Crypto\ SelfTest\Cipher正在复制lib\Crypto\SelfTest\Cipher\test_ARC2.py->build\lib.win32-3.7\Crypto\ SelfTest\Cipher正在复制lib\Crypto\SelfTest\Cipher\test_ARC4.py->build\lib.win32-3.7\Crypto\ SelfTest\Cipher复制lib\Crypto\SelfTest\Cipher\test_Blowfish.py->build\lib.win32-3.7\Crypto\ SelfTest\Cipher复制lib\Crypto\SelfTest\Cipher\test_CAST.py->build\lib.win32-3.7\Crypto\ SelfTest\Cipher正在复制lib\Crypto\SelfTest\Cipher\test_DES.py->build\lib.win32-3.7\Crypto\ SelfTest\Cipher正在复制lib\Crypto\SelfTest\Cipher\test_DES3.py->build\lib.win32-3.7\Crypto\ SelfTest\Cipher正在复制lib\Crypto\SelfTest\Cipher\test_pkcs1_15.py->build\lib.win32-3.7\Crypto\ SelfTest\Cipher复制lib\Crypto\SelfTest\Cipher\test_pkcs1_oaep.py->build\lib.win32-3.7\Crypto\ SelfTest\Cipher复制lib\Crypto\SelfTest\Cipher\test_XOR.py->build\lib.win32-3.7\Crypto\ SelfTest\Cipher复制lib\Crypto\SelfTest\Cipher\__init__.py->build\lib.win32-3.7\Crypto\ SelfTest\Cipher正在创建build\lib.win32-3.7\Crypto\SelfTest\Hash正在复制lib\Crypto\SelfTest\Hash\common.py->build\lib.win32-3.7\Crypto\ SelfTest\Hash正在复制lib\Crypto\SelfTest\Hash\test_HMAC.py->build\lib.win32-3.7\Crypto\ SelfTest\Hash正在复制lib\Crypto\SelfTest\Hash\test_MD2.py->build\lib.win32-3.7\Crypto\ SelfTest\Hash正在复制lib\Crypto\SelfTest\Hash\test_MD4.py->build\lib.win32-3.7\Crypto\ SelfTest\Hash正在复制lib\Crypto\SelfTest\Hash\test_MD5.py->build\lib.win32-3.7\Crypto\ SelfTest\Hash正在复制lib\Crypto\SelfTest\Hash\test_RIPEMD.py->build\lib.win32-3.7\Crypto\ SelfTest\Hash正在复制lib\Crypto\SelfTest\Hash\test_SHA.py->build\lib.win32-3.7\Crypto\ SelfTest\Hash正在复制lib\Crypto\SelfTest\Hash\test_SHA224.py->build\lib.win32-3.7\Crypto\ SelfTest\Hash正在复制lib\Crypto\SelfTest\Hash\test_SHA256.py->build\lib.win32-3.7\Crypto\ SelfTest\Hash正在复制lib\Crypto\SelfTest\Hash\test_SHA384.py->build\lib.win32-3.7\Crypto\ SelfTest\Hash正在复制lib\Crypto\SelfTest\Hash\test_SHA512.py->build\lib.win32-3.7\Crypto\ SelfTest\Hash正在复制lib\Crypto\SelfTest\Hash\__init__.py->build\lib.win32-3.7\Crypto\ SelfTest\Hash正在创建build\lib.win32-3.7\Crypto\SelfTest\Protocol正在复制lib\Crypto\SelfTest\Protocol\test_AllOrNothing.py->build\lib.win32-3.7\Crypto\ SelfTest\Protcol复制lib\Crypto\SelfTest\Protocol\test_chaffing.py->build\lib.win32-3.7\Crypto\ SelfTest\Protcol正在复制lib\Crypto\SelfTest\Protocol\test_KDF.py->build\lib.win32-3.7\Crypto\ SelfTest\Protcol正在复制lib\Crypto\SelfTest\Protocol\test_rfc1751.py->build\lib.win32-3.7\Crypto\ SelfTest\Protcol正在复制lib\Crypto\SelfTest\Protocol\__init__.py->build\lib.win32-3.7\Crypto\ SelfTest\Protcol正在创建build\lib.win32-3.7\Crypto\SelfTest\PublicKey正在复制lib\Crypto\SelfTest\PublicKey\test_DSA.py->build\lib.win32-3.7\Crypto\ SelfTest\PublicKey复制lib\Crypto\SelfTest\PublicKey\test_ElGamal.py->build\lib.win32-3.7\Crypto\ SelfTest\PublicKey复制lib\Crypto\SelfTest\PublicKey\test_importKey.py->build\lib.win32-3.7\Crypto\ SelfTest\PublicKey正在复制lib\Crypto\SelfTest\PublicKey\test_RSA.py->build\lib.win32-3.7\Crypto\ SelfTest\PublicKey复制lib\Crypto\SelfTest\PublicKey\__init__.py->build\lib.win32-3.7\Crypto\ SelfTest\PublicKey正在创建build\lib.win32-3.7\Crypto\SelfTest\Random复制lib\Crypto\SelfTest\Random\test_Random.py->build\lib.win32-3.7\Crypto\ SelfTest\Random复制lib\Crypto\SelfTest\Random\test_rpoolcompat.py->build\lib.win32-3.7\Crypto\ SelfTest\Random复制lib\Crypto\SelfTest\Random\test__UserFriendlyRNG.py->build\lib.win32-3.7\Crypto\ SelfTest\Random正在复制lib\Crypto\SelfTest\Random\__init__.py->build\lib.win32-3.7\Crypto\ SelfTest\Random创建build\lib.win32-3.7\Crypto\SelfTest\Random\Fortuna复制lib\Crypto\SelfTest\Random\Fortuna\test_FortunaAccumulator.py->build\lib.win32-3.7\Crypto\ SelfTest\Random \Fortuna复制lib\Crypto\SelfTest\Random\Fortuna\test_FortunaGenerator.py->build\lib.win32-3.7\Crypto\ SelfTest\Random \Fortuna复制lib\Crypto\SelfTest\Random\Fortuna\test_SHAd256.py->build\lib.win32-3.7\Crypto\ SelfTest\Random \Fortuna复制lib\Crypto\SelfTest\Random\Fortuna\__init__.py->build\lib.win32-3.7\Crypto\ SelfTest\Random \Fortuna创建build\lib.win32-3.7\Crypto\SelfTest\Random\OSRNG正在复制lib\Crypto\SelfTest\Random\OSRNG\test_fallback.py->build\lib.win32-3.7\Crypto\ SelfTest\Random \OSRNG复制lib\Crypto\SelfTest\Random\OSRNG\test_generic.py->build\lib.win32-3.7\Crypto\ SelfTest\Random \OSRNG复制lib\Crypto\SelfTest\Random\OSRNG\test_nt.py->build\lib.win32-3.7\Crypto\ SelfTest\Random \OSRNG复制lib\Crypto\SelfTest\Random\OSRNG\test_posix.py->build\lib.win32-3.7\Crypto\ SelfTest\Random \OSRNG复制lib\Crypto\SelfTest\Random\OSRNG\test_winrandom.py->build\lib.win32-3.7\Crypto\ SelfTest\Random \OSRNG复制lib\Crypto\SelfTest\Random\OSRNG\__init__.py->build\lib.win32-3.7\Crypto\ SelfTest\Random \OSRNG正在创建build\lib.win32-3.7\Crypto\SelfTest\Util正在复制lib\Crypto\SelfTest\Util\test_asn1.py->build\lib.win32-3.7\Crypto\ SelfTest\Util正在复制lib\Crypto\SelfTest\Util\test_Counter.py->build\lib.win32-3.7\Crypto\ SelfTest\Util正在复制lib\Crypto\SelfTest\Util\test_number.py->build\lib.win32-3.7\Crypto\ SelfTest\Util正在复制lib\Crypto\SelfTest\Util\test_winrandom.py->build\lib.win32-3.7\Crypto\ SelfTest\Util正在复制lib\Crypto\SelfTest\Util\__init__.py->build\lib.win32-3.7\Crypto\ SelfTest\Util正在创建build\lib.win32-3.7\Crypto\SelfTest\Signature正在复制lib\Crypto\SelfTest\Signature\test_pkcs1_15.py->build\lib.win32-3.7\Crypto\ SelfTest\ Signature正在复制lib\Crypto\SelfTest\Signature\test_pkcs1_pss.py->build\lib.win32-3.7\Crypto\ SelfTest\Signture正在复制lib\Crypto\SelfTest\Signature\__init__.py->build\lib.win32-3.7\Crypto\ SelfTest\ Signature创建build\lib.win32-3.7\Crypto\Protocol复制lib\Crypto\Protocol\AllOrNothing.py->build\lib.win32-3.7\Crypto\Protocol复制lib\Crypto\Protocol\Chaffing.py->build\lib.win32-3.7\Crypto\Protocol复制lib\Crypto\Protocol\KDF.py->build\lib.win32-3.7\Crypto\Protocol复制lib\Crypto\Protocol\__init__.py->build\lib.win32-3.7\Crypto\Protocol正在创建build\lib.win32-3.7\Crypto\PublicKey复制lib\Crypto\PublicKey\DSA.py->build\lib.win32-3.7\Crypto\PublicKey复制lib\Crypto\PublicKey\ElGamal.py->build\lib.win32-3.7\Crypto\PublicKey复制lib\Crypto\PublicKey\PublicKey.py->build\lib.win32-3.7\Crypto\PublicKey复制lib\Crypto\PublicKey\RSA.py->build\lib.win32-3.7\Crypto\PublicKey复制lib\Crypto\PublicKey_DSA.py->build\lib.win32-3.7\Crypto\PublicKey复制lib\Crypto\PublicKey\_RSA.py->build\lib.win32-3.7\Crypto\PublicKey复制lib\Crypto\PublicKey_slowmath.py->build\lib.win32-3.7\Crypto\PublicKey复制lib\Crypto\PublicKey\__init__.py->build\lib.win32-3.7\Crypto\PublicKey创建build\lib.win32-3.7\Crypto\Signature正在复制lib\Crypto\Signature\PKCS1_PSS.py->build\lib.win32-3.7\Crypto\ Signature正在复制lib\Crypto\Signature\PKCS1_v1_5.py->build\lib.win32-3.7\Crypto\ Signature正在复制lib\Crypto\Signature\__init__.py->build\lib.win32-3.7\Crypto\ Signature正在跳过可选修复程序:缓冲区跳过可选修复程序:习语正在跳过可选修复程序:set_litrial正在跳过可选修复程序:ws_comma运行build_ext警告:未找到GMP或MPIR库;未生成Crypto.PublicKey_fastmath。正在构建"Crypto.Random.OSRNG.winrandom"扩展创建内部版本\temp.win32-3.7创建内部版本\temp.win32-3.7\Release创建build\temp.win32-3.7\Release \srcC: \Program Files(x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe/C/nologo/Ox/W3/GL/DNDEBUG/MD-Isrc/-Isrc/-inc-msvc/-Ic:\users\jmd\appdata\local\programs\python\python37-32\include-Ic:\users\jmd\appdata\local\programs \python\python37-32\include"-Ic:\Program Files(x86在这种情况下"-IC:\Program Files(x86)\Windows Kits\8.1\include\shared"winrand.cC: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(26):错误C2061:语法错误:标识符'intmax_t'C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(27):错误C2061:语法错误:标识符'rem'C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(27):错误C2059:语法错误:";"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(28):错误C2059:语法错误:"}"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(30):错误C2061:语法错误:标识符"imaxdiv_t"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(30):错误C2059:语法错误:";"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(40):错误C2143:语法错误:"__cdecl"之前缺少"{"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(41):错误C2146:语法错误:标识符'_Number'之前缺少")"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(41):错误C2061:语法错误:标识符'_Number'C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(41):错误C2059:语法错误:";"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(42):错误C2059:语法错误:")"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(45):错误C2143:语法错误:"__cdecl"之前缺少"{"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(46):错误C2146:语法错误:标识符'_Numer'之前缺少")"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(46):错误C2061:语法错误:标识符"_Numerator"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(46):错误C2059:语法错误:";"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(46):错误C2059:语法错误:","C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(48):错误C2059:语法错误:")"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(50):错误C2143:语法错误:"__cdecl"之前缺少"{"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(56):错误C2143:语法错误:"__cdecl"之前缺少"{"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(63):错误C2143:语法错误:"__cdecl"之前缺少"{"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(69):错误C2143:语法错误:"__cdecl"之前缺少"{"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(76):错误C2143:语法错误:"__cdecl"之前缺少"{"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(82):错误C2143:语法错误:"__cdecl"之前缺少"{"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(89):错误C2143:语法错误:"__cdecl"之前缺少"{"C: \Program Files(x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h(95):错误C2143:语法错误:"__cdecl"之前缺少"{"错误:命令"C:\\Program Files(x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe"失败,退出状态为2----------------------------------------命令"c:\users\jmd\appdata\local\programs\python37-32\python.exe-u-c"导入setuptools,标记化__file__='C:\\Users\\JMD\\AppData\\Local\\Temp\\pip-install-il7eha03\\pycrypto\\setup.py';f=getattr(标记化,'open',open)(__file__);code=f.read().replace('\r\n','\n');f.关闭();exec(compile(code,__file__,'exec')"install--record C:\Users\JMD\AppData\Local\Temp\pip-record-ovghq181\install-record.txt--外部管理的单一版本--compile"失败,在C:\Users\JMD\AppData\Local\Temp\pip-install-il7eha03\pycrypto\
2017-01-03在Windows上构建pycrypto解决了我的问题。早些时候我尝试了同样的解决方案,但我认为那次我做错了什么