Skip to content
Advertisement

can’t install pycrypto, python 3.10, how to fix?

Cannot install pycrypto. Windows 10, build tools have. P.S(pycryptodome is not installing, required version of python < 3.5) Error

ERROR: Command errored out with exit status 1:
     command: 'C:UsersPANDEMICAppDataLocalProgramsPythonPython310python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PANDEMIC\AppData\Local\Temp\pip-install-ef9g90_l\pycrypto_696a777b084643c199004e3a284af80c\setup.py'"'"'; __file__='"'"'C:\Users\PANDEMIC\AppData\Local\Temp\pip-install-ef9g90_l\pycrypto_696a777b084643c199004e3a284af80c\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersPANDEMICAppDataLocalTemppip-record-7_hzboysinstall-record.txt' --single-version-externally-managed --compile --install-headers 'C:UsersPANDEMICAppDataLocalProgramsPythonPython310Includepycrypto'
         cwd: C:UsersPANDEMICAppDataLocalTemppip-install-ef9g90_lpycrypto_696a777b084643c199004e3a284af80c
    Complete output (183 lines):
    running install
    running build
    running build_py
    creating build
    creating buildlib.win-amd64-3.10
    creating buildlib.win-amd64-3.10Crypto
    copying libCryptopct_warnings.py -> buildlib.win-amd64-3.10Crypto
    copying libCrypto__init__.py -> buildlib.win-amd64-3.10Crypto
    creating buildlib.win-amd64-3.10CryptoHash
    copying libCryptoHashhashalgo.py -> buildlib.win-amd64-3.10CryptoHash
    copying libCryptoHashHMAC.py -> buildlib.win-amd64-3.10CryptoHash
    copying libCryptoHashMD2.py -> buildlib.win-amd64-3.10CryptoHash
    copying libCryptoHashMD4.py -> buildlib.win-amd64-3.10CryptoHash
    copying libCryptoHashMD5.py -> buildlib.win-amd64-3.10CryptoHash
    copying libCryptoHashRIPEMD.py -> buildlib.win-amd64-3.10CryptoHash
    copying libCryptoHashSHA.py -> buildlib.win-amd64-3.10CryptoHash
    copying libCryptoHashSHA224.py -> buildlib.win-amd64-3.10CryptoHash
    copying libCryptoHashSHA256.py -> buildlib.win-amd64-3.10CryptoHash
    copying libCryptoHashSHA384.py -> buildlib.win-amd64-3.10CryptoHash
    copying libCryptoHashSHA512.py -> buildlib.win-amd64-3.10CryptoHash
    copying libCryptoHash__init__.py -> buildlib.win-amd64-3.10CryptoHash
    creating buildlib.win-amd64-3.10CryptoCipher
    copying libCryptoCipherAES.py -> buildlib.win-amd64-3.10CryptoCipher
    copying libCryptoCipherARC2.py -> buildlib.win-amd64-3.10CryptoCipher
    copying libCryptoCipherARC4.py -> buildlib.win-amd64-3.10CryptoCipher
    copying libCryptoCipherblockalgo.py -> buildlib.win-amd64-3.10CryptoCipher
    copying libCryptoCipherBlowfish.py -> buildlib.win-amd64-3.10CryptoCipher
    copying libCryptoCipherCAST.py -> buildlib.win-amd64-3.10CryptoCipher
    copying libCryptoCipherDES.py -> buildlib.win-amd64-3.10CryptoCipher
    copying libCryptoCipherDES3.py -> buildlib.win-amd64-3.10CryptoCipher
    copying libCryptoCipherPKCS1_OAEP.py -> buildlib.win-amd64-3.10CryptoCipher
    copying libCryptoCipherPKCS1_v1_5.py -> buildlib.win-amd64-3.10CryptoCipher
    copying libCryptoCipherXOR.py -> buildlib.win-amd64-3.10CryptoCipher
    copying libCryptoCipher__init__.py -> buildlib.win-amd64-3.10CryptoCipher
    creating buildlib.win-amd64-3.10CryptoUtil
    copying libCryptoUtilasn1.py -> buildlib.win-amd64-3.10CryptoUtil
    copying libCryptoUtilCounter.py -> buildlib.win-amd64-3.10CryptoUtil
    copying libCryptoUtilnumber.py -> buildlib.win-amd64-3.10CryptoUtil
    copying libCryptoUtilpy3compat.py -> buildlib.win-amd64-3.10CryptoUtil
    copying libCryptoUtilrandpool.py -> buildlib.win-amd64-3.10CryptoUtil
    copying libCryptoUtilRFC1751.py -> buildlib.win-amd64-3.10CryptoUtil
    copying libCryptoUtilwinrandom.py -> buildlib.win-amd64-3.10CryptoUtil
    copying libCryptoUtil_number_new.py -> buildlib.win-amd64-3.10CryptoUtil
    copying libCryptoUtil__init__.py -> buildlib.win-amd64-3.10CryptoUtil
    creating buildlib.win-amd64-3.10CryptoRandom
    copying libCryptoRandomrandom.py -> buildlib.win-amd64-3.10CryptoRandom
    copying libCryptoRandom_UserFriendlyRNG.py -> buildlib.win-amd64-3.10CryptoRandom
    copying libCryptoRandom__init__.py -> buildlib.win-amd64-3.10CryptoRandom
    creating buildlib.win-amd64-3.10CryptoRandomFortuna
    copying libCryptoRandomFortunaFortunaAccumulator.py -> buildlib.win-amd64-3.10CryptoRandomFortuna
    copying libCryptoRandomFortunaFortunaGenerator.py -> buildlib.win-amd64-3.10CryptoRandomFortuna
    copying libCryptoRandomFortunaSHAd256.py -> buildlib.win-amd64-3.10CryptoRandomFortuna
    copying libCryptoRandomFortuna__init__.py -> buildlib.win-amd64-3.10CryptoRandomFortuna
    creating buildlib.win-amd64-3.10CryptoRandomOSRNG
    copying libCryptoRandomOSRNGfallback.py -> buildlib.win-amd64-3.10CryptoRandomOSRNG
    copying libCryptoRandomOSRNGnt.py -> buildlib.win-amd64-3.10CryptoRandomOSRNG
    copying libCryptoRandomOSRNGposix.py -> buildlib.win-amd64-3.10CryptoRandomOSRNG
    copying libCryptoRandomOSRNGrng_base.py -> buildlib.win-amd64-3.10CryptoRandomOSRNG
    copying libCryptoRandomOSRNG__init__.py -> buildlib.win-amd64-3.10CryptoRandomOSRNG
    creating buildlib.win-amd64-3.10CryptoSelfTest
    copying libCryptoSelfTestst_common.py -> buildlib.win-amd64-3.10CryptoSelfTest
    copying libCryptoSelfTest__init__.py -> buildlib.win-amd64-3.10CryptoSelfTest
    creating buildlib.win-amd64-3.10CryptoSelfTestCipher
    copying libCryptoSelfTestCiphercommon.py -> buildlib.win-amd64-3.10CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_AES.py -> buildlib.win-amd64-3.10CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_ARC2.py -> buildlib.win-amd64-3.10CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_ARC4.py -> buildlib.win-amd64-3.10CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_Blowfish.py -> buildlib.win-amd64-3.10CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_CAST.py -> buildlib.win-amd64-3.10CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_DES.py -> buildlib.win-amd64-3.10CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_DES3.py -> buildlib.win-amd64-3.10CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_pkcs1_15.py -> buildlib.win-amd64-3.10CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_pkcs1_oaep.py -> buildlib.win-amd64-3.10CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_XOR.py -> buildlib.win-amd64-3.10CryptoSelfTestCipher
    copying libCryptoSelfTestCipher__init__.py -> buildlib.win-amd64-3.10CryptoSelfTestCipher
    creating buildlib.win-amd64-3.10CryptoSelfTestHash
    copying libCryptoSelfTestHashcommon.py -> buildlib.win-amd64-3.10CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_HMAC.py -> buildlib.win-amd64-3.10CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_MD2.py -> buildlib.win-amd64-3.10CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_MD4.py -> buildlib.win-amd64-3.10CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_MD5.py -> buildlib.win-amd64-3.10CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_RIPEMD.py -> buildlib.win-amd64-3.10CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_SHA.py -> buildlib.win-amd64-3.10CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_SHA224.py -> buildlib.win-amd64-3.10CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_SHA256.py -> buildlib.win-amd64-3.10CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_SHA384.py -> buildlib.win-amd64-3.10CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_SHA512.py -> buildlib.win-amd64-3.10CryptoSelfTestHash
    copying libCryptoSelfTestHash__init__.py -> buildlib.win-amd64-3.10CryptoSelfTestHash
    creating buildlib.win-amd64-3.10CryptoSelfTestProtocol
    copying libCryptoSelfTestProtocoltest_AllOrNothing.py -> buildlib.win-amd64-3.10CryptoSelfTestProtocol
    copying libCryptoSelfTestProtocoltest_chaffing.py -> buildlib.win-amd64-3.10CryptoSelfTestProtocol
    copying libCryptoSelfTestProtocoltest_KDF.py -> buildlib.win-amd64-3.10CryptoSelfTestProtocol
    copying libCryptoSelfTestProtocoltest_rfc1751.py -> buildlib.win-amd64-3.10CryptoSelfTestProtocol
    copying libCryptoSelfTestProtocol__init__.py -> buildlib.win-amd64-3.10CryptoSelfTestProtocol
    creating buildlib.win-amd64-3.10CryptoSelfTestPublicKey
    copying libCryptoSelfTestPublicKeytest_DSA.py -> buildlib.win-amd64-3.10CryptoSelfTestPublicKey
    copying libCryptoSelfTestPublicKeytest_ElGamal.py -> buildlib.win-amd64-3.10CryptoSelfTestPublicKey
    copying libCryptoSelfTestPublicKeytest_importKey.py -> buildlib.win-amd64-3.10CryptoSelfTestPublicKey
    copying libCryptoSelfTestPublicKeytest_RSA.py -> buildlib.win-amd64-3.10CryptoSelfTestPublicKey
    copying libCryptoSelfTestPublicKey__init__.py -> buildlib.win-amd64-3.10CryptoSelfTestPublicKey
    creating buildlib.win-amd64-3.10CryptoSelfTestRandom
    copying libCryptoSelfTestRandomtest_random.py -> buildlib.win-amd64-3.10CryptoSelfTestRandom
    copying libCryptoSelfTestRandomtest_rpoolcompat.py -> buildlib.win-amd64-3.10CryptoSelfTestRandom
    copying libCryptoSelfTestRandomtest__UserFriendlyRNG.py -> buildlib.win-amd64-3.10CryptoSelfTestRandom
    copying libCryptoSelfTestRandom__init__.py -> buildlib.win-amd64-3.10CryptoSelfTestRandom
    creating buildlib.win-amd64-3.10CryptoSelfTestRandomFortuna
    copying libCryptoSelfTestRandomFortunatest_FortunaAccumulator.py -> buildlib.win-amd64-3.10CryptoSelfTestRandomFortuna
    copying libCryptoSelfTestRandomFortunatest_FortunaGenerator.py -> buildlib.win-amd64-3.10CryptoSelfTestRandomFortuna
    copying libCryptoSelfTestRandomFortunatest_SHAd256.py -> buildlib.win-amd64-3.10CryptoSelfTestRandomFortuna
    copying libCryptoSelfTestRandomFortuna__init__.py -> buildlib.win-amd64-3.10CryptoSelfTestRandomFortuna
    creating buildlib.win-amd64-3.10CryptoSelfTestRandomOSRNG
    copying libCryptoSelfTestRandomOSRNGtest_fallback.py -> buildlib.win-amd64-3.10CryptoSelfTestRandomOSRNG
    copying libCryptoSelfTestRandomOSRNGtest_generic.py -> buildlib.win-amd64-3.10CryptoSelfTestRandomOSRNG
    copying libCryptoSelfTestRandomOSRNGtest_nt.py -> buildlib.win-amd64-3.10CryptoSelfTestRandomOSRNG
    copying libCryptoSelfTestRandomOSRNGtest_posix.py -> buildlib.win-amd64-3.10CryptoSelfTestRandomOSRNG
    copying libCryptoSelfTestRandomOSRNGtest_winrandom.py -> buildlib.win-amd64-3.10CryptoSelfTestRandomOSRNG
    copying libCryptoSelfTestRandomOSRNG__init__.py -> buildlib.win-amd64-3.10CryptoSelfTestRandomOSRNG
    creating buildlib.win-amd64-3.10CryptoSelfTestUtil
    copying libCryptoSelfTestUtiltest_asn1.py -> buildlib.win-amd64-3.10CryptoSelfTestUtil
    copying libCryptoSelfTestUtiltest_Counter.py -> buildlib.win-amd64-3.10CryptoSelfTestUtil
    copying libCryptoSelfTestUtiltest_number.py -> buildlib.win-amd64-3.10CryptoSelfTestUtil
    copying libCryptoSelfTestUtiltest_winrandom.py -> buildlib.win-amd64-3.10CryptoSelfTestUtil
    copying libCryptoSelfTestUtil__init__.py -> buildlib.win-amd64-3.10CryptoSelfTestUtil
    creating buildlib.win-amd64-3.10CryptoSelfTestSignature
    copying libCryptoSelfTestSignaturetest_pkcs1_15.py -> buildlib.win-amd64-3.10CryptoSelfTestSignature
    copying libCryptoSelfTestSignaturetest_pkcs1_pss.py -> buildlib.win-amd64-3.10CryptoSelfTestSignature
    copying libCryptoSelfTestSignature__init__.py -> buildlib.win-amd64-3.10CryptoSelfTestSignature
    creating buildlib.win-amd64-3.10CryptoProtocol
    copying libCryptoProtocolAllOrNothing.py -> buildlib.win-amd64-3.10CryptoProtocol
    copying libCryptoProtocolChaffing.py -> buildlib.win-amd64-3.10CryptoProtocol
    copying libCryptoProtocolKDF.py -> buildlib.win-amd64-3.10CryptoProtocol
    copying libCryptoProtocol__init__.py -> buildlib.win-amd64-3.10CryptoProtocol
    creating buildlib.win-amd64-3.10CryptoPublicKey
    copying libCryptoPublicKeyDSA.py -> buildlib.win-amd64-3.10CryptoPublicKey
    copying libCryptoPublicKeyElGamal.py -> buildlib.win-amd64-3.10CryptoPublicKey
    copying libCryptoPublicKeypubkey.py -> buildlib.win-amd64-3.10CryptoPublicKey
    copying libCryptoPublicKeyRSA.py -> buildlib.win-amd64-3.10CryptoPublicKey
    copying libCryptoPublicKey_DSA.py -> buildlib.win-amd64-3.10CryptoPublicKey
    copying libCryptoPublicKey_RSA.py -> buildlib.win-amd64-3.10CryptoPublicKey
    copying libCryptoPublicKey_slowmath.py -> buildlib.win-amd64-3.10CryptoPublicKey
    copying libCryptoPublicKey__init__.py -> buildlib.win-amd64-3.10CryptoPublicKey
    creating buildlib.win-amd64-3.10CryptoSignature
    copying libCryptoSignaturePKCS1_PSS.py -> buildlib.win-amd64-3.10CryptoSignature
    copying libCryptoSignaturePKCS1_v1_5.py -> buildlib.win-amd64-3.10CryptoSignature
    copying libCryptoSignature__init__.py -> buildlib.win-amd64-3.10CryptoSignature
    Skipping optional fixer: buffer
    Skipping optional fixer: idioms
    Skipping optional fixer: set_literal
    Skipping optional fixer: ws_comma
    running build_ext
    warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
    building 'Crypto.Random.OSRNG.winrandom' extension
    creating buildtemp.win-amd64-3.10
    creating buildtemp.win-amd64-3.10Release
    creating buildtemp.win-amd64-3.10Releasesrc
    C:Program Files (x86)Microsoft Visual Studio2019BuildToolsVCToolsMSVC14.29.30133binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Isrc/ -Isrc/inc-msvc/ -IC:UsersPANDEMICAppDataLocalProgramsPythonPython310include -IC:UsersPANDEMICAppDataLocalProgramsPythonPython310Include -IC:Program Files (x86)Microsoft Visual Studio2019BuildToolsVCToolsMSVC14.29.30133include -IC:Program Files (x86)Windows KitsNETFXSDK4.8includeum -IC:Program Files (x86)Windows Kits10include10.0.19041.0ucrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0shared -IC:Program Files (x86)Windows Kits10include10.0.19041.0um -IC:Program Files (x86)Windows Kits10include10.0.19041.0winrt -IC:Program Files (x86)Windows Kits10include10.0.19041.0cppwinrt /Tcsrc/winrand.c /Fobuildtemp.win-amd64-3.10Releasesrc/winrand.obj
    winrand.c
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(31): error C2061: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : Ё¤Ґ­вЁдЁЄ в®а "intmax_t"
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(32): error C2061: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : Ё¤Ґ­вЁдЁЄ в®а "rem"
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(32): error C2059: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ;
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(33): error C2059: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : }
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(35): error C2061: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : Ё¤Ґ­вЁдЁЄ в®а "imaxdiv_t"
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(35): error C2059: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ;
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(45): error C2143: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ®вбгвбвўЁҐ "{" ЇҐаҐ¤ "__cdecl"
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(46): error C2146: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ®вбгвбвўЁҐ ")" ЇҐаҐ¤ Ё¤Ґ­вЁдЁЄ в®а®¬ "_Number"
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(46): error C2061: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : Ё¤Ґ­вЁдЁЄ в®а "_Number"
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(46): error C2059: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ;
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(47): error C2059: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : )
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(50): error C2143: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ®вбгвбвўЁҐ "{" ЇҐаҐ¤ "__cdecl"
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(51): error C2146: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ®вбгвбвўЁҐ ")" ЇҐаҐ¤ Ё¤Ґ­вЁдЁЄ в®а®¬ "_Numerator"
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(51): error C2061: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : Ё¤Ґ­вЁдЁЄ в®а "_Numerator"
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(51): error C2059: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ;
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(51): error C2059: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ,
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(53): error C2059: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : )
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(55): error C2143: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ®вбгвбвўЁҐ "{" ЇҐаҐ¤ "__cdecl"
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(61): error C2143: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ®вбгвбвўЁҐ "{" ЇҐаҐ¤ "__cdecl"
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(68): error C2143: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ®вбгвбвўЁҐ "{" ЇҐаҐ¤ "__cdecl"
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(74): error C2143: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ®вбгвбвўЁҐ "{" ЇҐаҐ¤ "__cdecl"
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(81): error C2143: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ®вбгвбвўЁҐ "{" ЇҐаҐ¤ "__cdecl"
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(87): error C2143: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ®вбгвбвўЁҐ "{" ЇҐаҐ¤ "__cdecl"
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(94): error C2143: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ®вбгвбвўЁҐ "{" ЇҐаҐ¤ "__cdecl"
    C:Program Files (x86)Windows Kits10include10.0.19041.0ucrtinttypes.h(100): error C2143: бЁ­в ЄбЁзҐбЄ п ®иЁЎЄ : ®вбгвбвўЁҐ "{" ЇҐаҐ¤ "__cdecl"
    error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:UsersPANDEMICAppDataLocalProgramsPythonPython310python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PANDEMIC\AppData\Local\Temp\pip-install-ef9g90_l\pycrypto_696a777b084643c199004e3a284af80c\setup.py'"'"'; __file__='"'"'C:\Users\PANDEMIC\AppData\Local\Temp\pip-install-ef9g90_l\pycrypto_696a777b084643c199004e3a284af80c\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersPANDEMICAppDataLocalTemppip-record-7_hzboysinstall-record.txt' --single-version-externally-managed --compile --install-headers 'C:UsersPANDEMICAppDataLocalProgramsPythonPython310Includepycrypto' Check the logs for full command output.

Advertisement

Answer

I’d wager something is missing, or that version of Pycrypto just doesn’t work on your Python 3.10 on 64-bit Windows. (Pycrypto hasn’t been updated since 2013. You probably don’t want to use it.)

Could you get whatever you want done with cryptography, i.e. pip install cryptography? There seem to be pre-compiled wheels for Windows for it.

There’s also a fork of pycryptodome, pycryptodomex, that might help.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement