My question is: how to install PyCrypto on windows and python 3.9? When I typed pip install pycrypto
to the commandline(cmd or powershell) I get an Error.
ERROR: Command errored out with exit status 1:
command: 'c:usersMy Usernameappdatalocalprogramspythonpython39python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\My Username\AppData\Local\Temp\pip-install-mg3qxtu2\pycrypto_ffaf716f631d47a5a2b1a2cfaf5a949e\setup.py'"'"'; __file__='"'"'C:\Users\My Username\AppData\Local\Temp\pip-install-mg3qxtu2\pycrypto_ffaf716f631d47a5a2b1a2cfaf5a949e\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersMy UsernameAppDataLocalTemppip-record-7ovjz48dinstall-record.txt' --single-version-externally-managed --compile --install-headers 'c:usersMy Usernameappdatalocalprogramspythonpython39Includepycrypto'
cwd: C:UsersMy UsernameAppDataLocalTemppip-install-mg3qxtu2pycrypto_ffaf716f631d47a5a2b1a2cfaf5a949e
Complete output (183 lines):
running install
running build
running build_py
creating build
creating buildlib.win-amd64-3.9
creating buildlib.win-amd64-3.9Crypto
copying libCryptopct_warnings.py -> buildlib.win-amd64-3.9Crypto
copying libCrypto\__init__.py -> buildlib.win-amd64-3.9Crypto
creating buildlib.win-amd64-3.9CryptoHash
copying libCryptoHashhashalgo.py -> buildlib.win-amd64-3.9CryptoHash
copying libCryptoHashHMAC.py -> buildlib.win-amd64-3.9CryptoHash
copying libCryptoHashMD2.py -> buildlib.win-amd64-3.9CryptoHash
copying libCryptoHashMD4.py -> buildlib.win-amd64-3.9CryptoHash
copying libCryptoHashMD5.py -> buildlib.win-amd64-3.9CryptoHash
copying libCryptoHashRIPEMD.py -> buildlib.win-amd64-3.9CryptoHash
copying libCryptoHashSHA.py -> buildlib.win-amd64-3.9CryptoHash
copying libCryptoHashSHA224.py -> buildlib.win-amd64-3.9CryptoHash
copying libCryptoHashSHA256.py -> buildlib.win-amd64-3.9CryptoHash
copying libCryptoHashSHA384.py -> buildlib.win-amd64-3.9CryptoHash
copying libCryptoHashSHA512.py -> buildlib.win-amd64-3.9CryptoHash
copying libCryptoHash\__init__.py -> buildlib.win-amd64-3.9CryptoHash
creating buildlib.win-amd64-3.9CryptoCipher
copying libCryptoCipherAES.py -> buildlib.win-amd64-3.9CryptoCipher
copying libCryptoCipherARC2.py -> buildlib.win-amd64-3.9CryptoCipher
copying libCryptoCipherARC4.py -> buildlib.win-amd64-3.9CryptoCipher
copying libCryptoCipherlockalgo.py -> buildlib.win-amd64-3.9CryptoCipher
copying libCryptoCipherBlowfish.py -> buildlib.win-amd64-3.9CryptoCipher
copying libCryptoCipherCAST.py -> buildlib.win-amd64-3.9CryptoCipher
copying libCryptoCipherDES.py -> buildlib.win-amd64-3.9CryptoCipher
copying libCryptoCipherDES3.py -> buildlib.win-amd64-3.9CryptoCipher
copying libCryptoCipherPKCS1_OAEP.py -> buildlib.win-amd64-3.9CryptoCipher
copying libCryptoCipherPKCS1_v1_5.py -> buildlib.win-amd64-3.9CryptoCipher
copying libCryptoCipherXOR.py -> buildlib.win-amd64-3.9CryptoCipher
copying libCryptoCipher\__init__.py -> buildlib.win-amd64-3.9CryptoCipher
creating buildlib.win-amd64-3.9CryptoUtil
copying libCryptoUtilasn1.py -> buildlib.win-amd64-3.9CryptoUtil
copying libCryptoUtilCounter.py -> buildlib.win-amd64-3.9CryptoUtil
copying libCryptoUtil
umber.py -> buildlib.win-amd64-3.9CryptoUtil
copying libCryptoUtilpy3compat.py -> buildlib.win-amd64-3.9CryptoUtil
copying libCryptoUtil
andpool.py -> buildlib.win-amd64-3.9CryptoUtil
copying libCryptoUtilRFC1751.py -> buildlib.win-amd64-3.9CryptoUtil
copying libCryptoUtilwinrandom.py -> buildlib.win-amd64-3.9CryptoUtil
copying libCryptoUtil\_number_new.py -> buildlib.win-amd64-3.9CryptoUtil
copying libCryptoUtil\__init__.py -> buildlib.win-amd64-3.9CryptoUtil
creating buildlib.win-amd64-3.9CryptoRandom
copying libCryptoRandom
andom.py -> buildlib.win-amd64-3.9CryptoRandom
copying libCryptoRandom\_UserFriendlyRNG.py -> buildlib.win-amd64-3.9CryptoRandom
copying libCryptoRandom\__init__.py -> buildlib.win-amd64-3.9CryptoRandom
creating buildlib.win-amd64-3.9CryptoRandomFortuna
copying libCryptoRandomFortunaFortunaAccumulator.py -> buildlib.win-amd64-3.9CryptoRandomFortuna
copying libCryptoRandomFortunaFortunaGenerator.py -> buildlib.win-amd64-3.9CryptoRandomFortuna
copying libCryptoRandomFortunaSHAd256.py -> buildlib.win-amd64-3.9CryptoRandomFortuna
copying libCryptoRandomFortuna\__init__.py -> buildlib.win-amd64-3.9CryptoRandomFortuna
creating buildlib.win-amd64-3.9CryptoRandomOSRNG
copying libCryptoRandomOSRNGfallback.py -> buildlib.win-amd64-3.9CryptoRandomOSRNG
copying libCryptoRandomOSRNG
t.py -> buildlib.win-amd64-3.9CryptoRandomOSRNG
copying libCryptoRandomOSRNGposix.py -> buildlib.win-amd64-3.9CryptoRandomOSRNG
copying libCryptoRandomOSRNG
ng_base.py -> buildlib.win-amd64-3.9CryptoRandomOSRNG
copying libCryptoRandomOSRNG\__init__.py -> buildlib.win-amd64-3.9CryptoRandomOSRNG
creating buildlib.win-amd64-3.9CryptoSelfTest
copying libCryptoSelfTestst_common.py -> buildlib.win-amd64-3.9CryptoSelfTest
copying libCryptoSelfTest\__init__.py -> buildlib.win-amd64-3.9CryptoSelfTest
creating buildlib.win-amd64-3.9CryptoSelfTestCipher
copying libCryptoSelfTestCiphercommon.py -> buildlib.win-amd64-3.9CryptoSelfTestCipher
copying libCryptoSelfTestCipherest_AES.py -> buildlib.win-amd64-3.9CryptoSelfTestCipher
copying libCryptoSelfTestCipherest_ARC2.py -> buildlib.win-amd64-3.9CryptoSelfTestCipher
copying libCryptoSelfTestCipherest_ARC4.py -> buildlib.win-amd64-3.9CryptoSelfTestCipher
copying libCryptoSelfTestCipherest_Blowfish.py -> buildlib.win-amd64-3.9CryptoSelfTestCipher
copying libCryptoSelfTestCipherest_CAST.py -> buildlib.win-amd64-3.9CryptoSelfTestCipher
copying libCryptoSelfTestCipherest_DES.py -> buildlib.win-amd64-3.9CryptoSelfTestCipher
copying libCryptoSelfTestCipherest_DES3.py -> buildlib.win-amd64-3.9CryptoSelfTestCipher
copying libCryptoSelfTestCipherest_pkcs1_15.py -> buildlib.win-amd64-3.9CryptoSelfTestCipher
copying libCryptoSelfTestCipherest_pkcs1_oaep.py -> buildlib.win-amd64-3.9CryptoSelfTestCipher
copying libCryptoSelfTestCipherest_XOR.py -> buildlib.win-amd64-3.9CryptoSelfTestCipher
copying libCryptoSelfTestCipher\__init__.py -> buildlib.win-amd64-3.9CryptoSelfTestCipher
creating buildlib.win-amd64-3.9CryptoSelfTestHash
copying libCryptoSelfTestHashcommon.py -> buildlib.win-amd64-3.9CryptoSelfTestHash
copying libCryptoSelfTestHashest_HMAC.py -> buildlib.win-amd64-3.9CryptoSelfTestHash
copying libCryptoSelfTestHashest_MD2.py -> buildlib.win-amd64-3.9CryptoSelfTestHash
copying libCryptoSelfTestHashest_MD4.py -> buildlib.win-amd64-3.9CryptoSelfTestHash
copying libCryptoSelfTestHashest_MD5.py -> buildlib.win-amd64-3.9CryptoSelfTestHash
copying libCryptoSelfTestHashest_RIPEMD.py -> buildlib.win-amd64-3.9CryptoSelfTestHash
copying libCryptoSelfTestHashest_SHA.py -> buildlib.win-amd64-3.9CryptoSelfTestHash
copying libCryptoSelfTestHashest_SHA224.py -> buildlib.win-amd64-3.9CryptoSelfTestHash
copying libCryptoSelfTestHashest_SHA256.py -> buildlib.win-amd64-3.9CryptoSelfTestHash
copying libCryptoSelfTestHashest_SHA384.py -> buildlib.win-amd64-3.9CryptoSelfTestHash
copying libCryptoSelfTestHashest_SHA512.py -> buildlib.win-amd64-3.9CryptoSelfTestHash
copying libCryptoSelfTestHash\__init__.py -> buildlib.win-amd64-3.9CryptoSelfTestHash
creating buildlib.win-amd64-3.9CryptoSelfTestProtocol
copying libCryptoSelfTestProtocolest_AllOrNothing.py -> buildlib.win-amd64-3.9CryptoSelfTestProtocol
copying libCryptoSelfTestProtocolest_chaffing.py -> buildlib.win-amd64-3.9CryptoSelfTestProtocol
copying libCryptoSelfTestProtocolest_KDF.py -> buildlib.win-amd64-3.9CryptoSelfTestProtocol
copying libCryptoSelfTestProtocolest_rfc1751.py -> buildlib.win-amd64-3.9CryptoSelfTestProtocol
copying libCryptoSelfTestProtocol\__init__.py -> buildlib.win-amd64-3.9CryptoSelfTestProtocol
creating buildlib.win-amd64-3.9CryptoSelfTestPublicKey
copying libCryptoSelfTestPublicKeyest_DSA.py -> buildlib.win-amd64-3.9CryptoSelfTestPublicKey
copying libCryptoSelfTestPublicKeyest_ElGamal.py -> buildlib.win-amd64-3.9CryptoSelfTestPublicKey
copying libCryptoSelfTestPublicKeyest_importKey.py -> buildlib.win-amd64-3.9CryptoSelfTestPublicKey
copying libCryptoSelfTestPublicKeyest_RSA.py -> buildlib.win-amd64-3.9CryptoSelfTestPublicKey
copying libCryptoSelfTestPublicKey\__init__.py -> buildlib.win-amd64-3.9CryptoSelfTestPublicKey
creating buildlib.win-amd64-3.9CryptoSelfTestRandom
copying libCryptoSelfTestRandomest_random.py -> buildlib.win-amd64-3.9CryptoSelfTestRandom
copying libCryptoSelfTestRandomest_rpoolcompat.py -> buildlib.win-amd64-3.9CryptoSelfTestRandom
copying libCryptoSelfTestRandomest__UserFriendlyRNG.py -> buildlib.win-amd64-3.9CryptoSelfTestRandom
copying libCryptoSelfTestRandom\__init__.py -> buildlib.win-amd64-3.9CryptoSelfTestRandom
creating buildlib.win-amd64-3.9CryptoSelfTestRandomFortuna
copying libCryptoSelfTestRandomFortunaest_FortunaAccumulator.py -> buildlib.win-amd64-3.9CryptoSelfTestRandomFortuna
copying libCryptoSelfTestRandomFortunaest_FortunaGenerator.py -> buildlib.win-amd64-3.9CryptoSelfTestRandomFortuna
copying libCryptoSelfTestRandomFortunaest_SHAd256.py -> buildlib.win-amd64-3.9CryptoSelfTestRandomFortuna
copying libCryptoSelfTestRandomFortuna\__init__.py -> buildlib.win-amd64-3.9CryptoSelfTestRandomFortuna
creating buildlib.win-amd64-3.9CryptoSelfTestRandomOSRNG
copying libCryptoSelfTestRandomOSRNGest_fallback.py -> buildlib.win-amd64-3.9CryptoSelfTestRandomOSRNG
copying libCryptoSelfTestRandomOSRNGest_generic.py -> buildlib.win-amd64-3.9CryptoSelfTestRandomOSRNG
copying libCryptoSelfTestRandomOSRNGest_nt.py -> buildlib.win-amd64-3.9CryptoSelfTestRandomOSRNG
copying libCryptoSelfTestRandomOSRNGest_posix.py -> buildlib.win-amd64-3.9CryptoSelfTestRandomOSRNG
copying libCryptoSelfTestRandomOSRNGest_winrandom.py -> buildlib.win-amd64-3.9CryptoSelfTestRandomOSRNG
copying libCryptoSelfTestRandomOSRNG\__init__.py -> buildlib.win-amd64-3.9CryptoSelfTestRandomOSRNG
creating buildlib.win-amd64-3.9CryptoSelfTestUtil
copying libCryptoSelfTestUtilest_asn1.py -> buildlib.win-amd64-3.9CryptoSelfTestUtil
copying libCryptoSelfTestUtilest_Counter.py -> buildlib.win-amd64-3.9CryptoSelfTestUtil
copying libCryptoSelfTestUtilest_number.py -> buildlib.win-amd64-3.9CryptoSelfTestUtil
copying libCryptoSelfTestUtilest_winrandom.py -> buildlib.win-amd64-3.9CryptoSelfTestUtil
copying libCryptoSelfTestUtil\__init__.py -> buildlib.win-amd64-3.9CryptoSelfTestUtil
creating buildlib.win-amd64-3.9CryptoSelfTestSignature
copying libCryptoSelfTestSignatureest_pkcs1_15.py -> buildlib.win-amd64-3.9CryptoSelfTestSignature
copying libCryptoSelfTestSignatureest_pkcs1_pss.py -> buildlib.win-amd64-3.9CryptoSelfTestSignature
copying libCryptoSelfTestSignature\__init__.py -> buildlib.win-amd64-3.9CryptoSelfTestSignature
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…