• 14-12-2021, 06:48:16
    #1
    Merhaba, bir proje için ek olarak kütüphaneyi kurmam gerek ama pip install ile kuramıyorum, hata veriyor.
    Kütüphanenin kendi sitesinde ise bir rar veriyor, içinde setup.py gibi dosyalar var ama setup.py'e girince siyah komut penceresi açılıp kapanıyor ve bir şey olmuyor.
    Bu kütüphaneyi nasıl kurabilirim yardımcı olabilecek var mı ?
    Kütüphane ---> pycrypto
  • 14-12-2021, 06:59:54
    #2
    Üyeliği durduruldu
    Hatayı atarsanız yardımcı olacağız
  • 14-12-2021, 07:03:25
    #3
    Running setup.py install for pycrypto ... error
    ERROR: Command errored out with exit status 1:
    command: 'c:usersceyhunpycharmprojectspythonproject1venvscr iptspython.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ceyhun\AppData\Local\Temp\pip-install-6qgdoydg\pycrypto_819447fb
    c0f54a6b918749b38e5619df\setup.py'"'"'; __file__='"'"'C:\Users\Ceyhun\AppData\Local\Temp\p ip-install-6qgdoydg\pycrypto_819447fbc0f54a6b918749b38e5619df \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:UsersCeyhunAp
    pDataLocalTemppip-record-hqzubr8minstall-record.txt' --single-version-externally-managed --compile --install-headers 'c:usersceyhunpycharmprojectspythonproject1venvinc ludesitepython3.7pycrypto'
    cwd: C:UsersCeyhunAppDataLocalTemppip-install-6qgdoydgpycrypto_819447fbc0f54a6b918749b38e5619df
    Complete output (155 lines):
    running install
    c:usersceyhunpycharmprojectspythonproject1venvlibs ite-packagessetuptoolscommandinstall.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
    setuptools.SetuptoolsDeprecationWarning,
    running build
    running build_py
    creating build
    creating buildlib.win32-3.7
    creating buildlib.win32-3.7Crypto
    copying libCryptopct_warnings.py -> buildlib.win32-3.7Crypto
    copying libCrypto__init__.py -> buildlib.win32-3.7Crypto
    creating buildlib.win32-3.7CryptoHash
    copying libCryptoHashhashalgo.py -> buildlib.win32-3.7CryptoHash
    copying libCryptoHashHMAC.py -> buildlib.win32-3.7CryptoHash
    copying libCryptoHashMD2.py -> buildlib.win32-3.7CryptoHash
    copying libCryptoHashMD4.py -> buildlib.win32-3.7CryptoHash
    copying libCryptoHashMD5.py -> buildlib.win32-3.7CryptoHash
    copying libCryptoHashRIPEMD.py -> buildlib.win32-3.7CryptoHash
    copying libCryptoHashSHA.py -> buildlib.win32-3.7CryptoHash
    copying libCryptoHashSHA224.py -> buildlib.win32-3.7CryptoHash
    copying libCryptoHashSHA256.py -> buildlib.win32-3.7CryptoHash
    copying libCryptoHashSHA384.py -> buildlib.win32-3.7CryptoHash
    copying libCryptoHashSHA512.py -> buildlib.win32-3.7CryptoHash
    copying libCryptoHash__init__.py -> buildlib.win32-3.7CryptoHash
    creating buildlib.win32-3.7CryptoCipher
    copying libCryptoCipherAES.py -> buildlib.win32-3.7CryptoCipher
    copying libCryptoCipherARC2.py -> buildlib.win32-3.7CryptoCipher
    copying libCryptoCipherARC4.py -> buildlib.win32-3.7CryptoCipher
    copying libCryptoCipherblockalgo.py -> buildlib.win32-3.7CryptoCipher
    copying libCryptoCipherBlowfish.py -> buildlib.win32-3.7CryptoCipher
    copying libCryptoCipherCAST.py -> buildlib.win32-3.7CryptoCipher
    copying libCryptoCipherDES.py -> buildlib.win32-3.7CryptoCipher
    copying libCryptoCipherDES3.py -> buildlib.win32-3.7CryptoCipher
    copying libCryptoCipherPKCS1_OAEP.py -> buildlib.win32-3.7CryptoCipher
    copying libCryptoCipherPKCS1_v1_5.py -> buildlib.win32-3.7CryptoCipher
    copying libCryptoCipherXOR.py -> buildlib.win32-3.7CryptoCipher
    copying libCryptoCipher__init__.py -> buildlib.win32-3.7CryptoCipher
    creating buildlib.win32-3.7CryptoUtil
    copying libCryptoUtilasn1.py -> buildlib.win32-3.7CryptoUtil
    copying libCryptoUtilCounter.py -> buildlib.win32-3.7CryptoUtil
    copying libCryptoUtilnumber.py -> buildlib.win32-3.7CryptoUtil
    copying libCryptoUtilpy3compat.py -> buildlib.win32-3.7CryptoUtil
    copying libCryptoUtilrandpool.py -> buildlib.win32-3.7CryptoUtil
    copying libCryptoUtilRFC1751.py -> buildlib.win32-3.7CryptoUtil
    copying libCryptoUtilwinrandom.py -> buildlib.win32-3.7CryptoUtil
    copying libCryptoUtil_number_new.py -> buildlib.win32-3.7CryptoUtil
    copying libCryptoUtil__init__.py -> buildlib.win32-3.7CryptoUtil
    creating buildlib.win32-3.7CryptoRandom
    copying libCryptoRandomrandom.py -> buildlib.win32-3.7CryptoRandom
    copying libCryptoRandom_UserFriendlyRNG.py -> buildlib.win32-3.7CryptoRandom
    copying libCryptoRandom__init__.py -> buildlib.win32-3.7CryptoRandom
    creating buildlib.win32-3.7CryptoRandomFortuna
    copying libCryptoRandomFortunaFortunaAccumulator.py -> buildlib.win32-3.7CryptoRandomFortuna
    copying libCryptoRandomFortunaFortunaGenerator.py -> buildlib.win32-3.7CryptoRandomFortuna
    copying libCryptoRandomFortunaSHAd256.py -> buildlib.win32-3.7CryptoRandomFortuna
    copying libCryptoRandomFortuna__init__.py -> buildlib.win32-3.7CryptoRandomFortuna
    creating buildlib.win32-3.7CryptoRandomOSRNG
    copying libCryptoRandomOSRNGfallback.py -> buildlib.win32-3.7CryptoRandomOSRNG
    copying libCryptoRandomOSRNGnt.py -> buildlib.win32-3.7CryptoRandomOSRNG
    copying libCryptoRandomOSRNGposix.py -> buildlib.win32-3.7CryptoRandomOSRNG
    copying libCryptoRandomOSRNGrng_base.py -> buildlib.win32-3.7CryptoRandomOSRNG
    copying libCryptoRandomOSRNG__init__.py -> buildlib.win32-3.7CryptoRandomOSRNG
    creating buildlib.win32-3.7CryptoSelfTest
    copying libCryptoSelfTestst_common.py -> buildlib.win32-3.7CryptoSelfTest
    copying libCryptoSelfTest__init__.py -> buildlib.win32-3.7CryptoSelfTest
    creating buildlib.win32-3.7CryptoSelfTestCipher
    copying libCryptoSelfTestCiphercommon.py -> buildlib.win32-3.7CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_AES.py -> buildlib.win32-3.7CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_ARC2.py -> buildlib.win32-3.7CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_ARC4.py -> buildlib.win32-3.7CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_Blowfish.py -> buildlib.win32-3.7CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_CAST.py -> buildlib.win32-3.7CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_DES.py -> buildlib.win32-3.7CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_DES3.py -> buildlib.win32-3.7CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_pkcs1_15.py -> buildlib.win32-3.7CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_pkcs1_oaep.py -> buildlib.win32-3.7CryptoSelfTestCipher
    copying libCryptoSelfTestCiphertest_XOR.py -> buildlib.win32-3.7CryptoSelfTestCipher
    copying libCryptoSelfTestCipher__init__.py -> buildlib.win32-3.7CryptoSelfTestCipher
    creating buildlib.win32-3.7CryptoSelfTestHash
    copying libCryptoSelfTestHashcommon.py -> buildlib.win32-3.7CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_HMAC.py -> buildlib.win32-3.7CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_MD2.py -> buildlib.win32-3.7CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_MD4.py -> buildlib.win32-3.7CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_MD5.py -> buildlib.win32-3.7CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_RIPEMD.py -> buildlib.win32-3.7CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_SHA.py -> buildlib.win32-3.7CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_SHA224.py -> buildlib.win32-3.7CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_SHA256.py -> buildlib.win32-3.7CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_SHA384.py -> buildlib.win32-3.7CryptoSelfTestHash
    copying libCryptoSelfTestHashtest_SHA512.py -> buildlib.win32-3.7CryptoSelfTestHash
    copying libCryptoSelfTestHash__init__.py -> buildlib.win32-3.7CryptoSelfTestHash
    creating buildlib.win32-3.7CryptoSelfTestProtocol
    copying libCryptoSelfTestProtocoltest_AllOrNothing.py -> buildlib.win32-3.7CryptoSelfTestProtocol
    copying libCryptoSelfTestProtocoltest_chaffing.py -> buildlib.win32-3.7CryptoSelfTestProtocol
    copying libCryptoSelfTestProtocoltest_KDF.py -> buildlib.win32-3.7CryptoSelfTestProtocol
    copying libCryptoSelfTestProtocoltest_rfc1751.py -> buildlib.win32-3.7CryptoSelfTestProtocol
    copying libCryptoSelfTestProtocol__init__.py -> buildlib.win32-3.7CryptoSelfTestProtocol
    creating buildlib.win32-3.7CryptoSelfTestPublicKey
    copying libCryptoSelfTestPublicKeytest_DSA.py -> buildlib.win32-3.7CryptoSelfTestPublicKey
    copying libCryptoSelfTestPublicKeytest_ElGamal.py -> buildlib.win32-3.7CryptoSelfTestPublicKey
    copying libCryptoSelfTestPublicKeytest_importKey.py -> buildlib.win32-3.7CryptoSelfTestPublicKey
    copying libCryptoSelfTestPublicKeytest_RSA.py -> buildlib.win32-3.7CryptoSelfTestPublicKey
    copying libCryptoSelfTestPublicKey__init__.py -> buildlib.win32-3.7CryptoSelfTestPublicKey
    creating buildlib.win32-3.7CryptoSelfTestRandom
    copying libCryptoSelfTestRandomtest_random.py -> buildlib.win32-3.7CryptoSelfTestRandom
    copying libCryptoSelfTestRandomtest_rpoolcompat.py -> buildlib.win32-3.7CryptoSelfTestRandom
    copying libCryptoSelfTestRandomtest__UserFriendlyRNG.py -> buildlib.win32-3.7CryptoSelfTestRandom
    copying libCryptoSelfTestRandom__init__.py -> buildlib.win32-3.7CryptoSelfTestRandom
    creating buildlib.win32-3.7CryptoSelfTestRandomFortuna
    copying libCryptoSelfTestRandomFortunatest_FortunaAccumula tor.py -> buildlib.win32-3.7CryptoSelfTestRandomFortuna
    copying libCryptoSelfTestRandomFortunatest_FortunaGenerato r.py -> buildlib.win32-3.7CryptoSelfTestRandomFortuna
    copying libCryptoSelfTestRandomFortunatest_SHAd256.py -> buildlib.win32-3.7CryptoSelfTestRandomFortuna
    copying libCryptoSelfTestRandomFortuna__init__.py -> buildlib.win32-3.7CryptoSelfTestRandomFortuna
    creating buildlib.win32-3.7CryptoSelfTestRandomOSRNG
    copying libCryptoSelfTestRandomOSRNGtest_fallback.py -> buildlib.win32-3.7CryptoSelfTestRandomOSRNG
    copying libCryptoSelfTestRandomOSRNGtest_generic.py -> buildlib.win32-3.7CryptoSelfTestRandomOSRNG
    copying libCryptoSelfTestRandomOSRNGtest_nt.py -> buildlib.win32-3.7CryptoSelfTestRandomOSRNG
    copying libCryptoSelfTestRandomOSRNGtest_posix.py -> buildlib.win32-3.7CryptoSelfTestRandomOSRNG
    copying libCryptoSelfTestRandomOSRNGtest_winrandom.py -> buildlib.win32-3.7CryptoSelfTestRandomOSRNG
    copying libCryptoSelfTestRandomOSRNG__init__.py -> buildlib.win32-3.7CryptoSelfTestRandomOSRNG
    creating buildlib.win32-3.7CryptoSelfTestUtil
    copying libCryptoSelfTestUtiltest_asn1.py -> buildlib.win32-3.7CryptoSelfTestUtil
    copying libCryptoSelfTestUtiltest_Counter.py -> buildlib.win32-3.7CryptoSelfTestUtil
    copying libCryptoSelfTestUtiltest_number.py -> buildlib.win32-3.7CryptoSelfTestUtil
    copying libCryptoSelfTestUtiltest_winrandom.py -> buildlib.win32-3.7CryptoSelfTestUtil
    copying libCryptoSelfTestUtil__init__.py -> buildlib.win32-3.7CryptoSelfTestUtil
    creating buildlib.win32-3.7CryptoSelfTestSignature
    copying libCryptoSelfTestSignaturetest_pkcs1_15.py -> buildlib.win32-3.7CryptoSelfTestSignature
    copying libCryptoSelfTestSignaturetest_pkcs1_pss.py -> buildlib.win32-3.7CryptoSelfTestSignature
    copying libCryptoSelfTestSignature__init__.py -> buildlib.win32-3.7CryptoSelfTestSignature
    creating buildlib.win32-3.7CryptoProtocol
    copying libCryptoProtocolAllOrNothing.py -> buildlib.win32-3.7CryptoProtocol
    copying libCryptoProtocolChaffing.py -> buildlib.win32-3.7CryptoProtocol
    copying libCryptoProtocolKDF.py -> buildlib.win32-3.7CryptoProtocol
    copying libCryptoProtocol__init__.py -> buildlib.win32-3.7CryptoProtocol
    creating buildlib.win32-3.7CryptoPublicKey
    copying libCryptoPublicKeyDSA.py -> buildlib.win32-3.7CryptoPublicKey
    copying libCryptoPublicKeyElGamal.py -> buildlib.win32-3.7CryptoPublicKey
    copying libCryptoPublicKeypubkey.py -> buildlib.win32-3.7CryptoPublicKey
    copying libCryptoPublicKeyRSA.py -> buildlib.win32-3.7CryptoPublicKey
    copying libCryptoPublicKey_DSA.py -> buildlib.win32-3.7CryptoPublicKey
    copying libCryptoPublicKey_RSA.py -> buildlib.win32-3.7CryptoPublicKey
    copying libCryptoPublicKey_slowmath.py -> buildlib.win32-3.7CryptoPublicKey
    copying libCryptoPublicKey__init__.py -> buildlib.win32-3.7CryptoPublicKey
    creating buildlib.win32-3.7CryptoSignature
    copying libCryptoSignaturePKCS1_PSS.py -> buildlib.win32-3.7CryptoSignature
    copying libCryptoSignaturePKCS1_v1_5.py -> buildlib.win32-3.7CryptoSignature
    copying libCryptoSignature__init__.py -> buildlib.win32-3.7CryptoSignature
    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
    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/v...p-build-tools/
    ----------------------------------------
    ERROR: Command errored out with exit status 1: 'c:usersceyhunpycharmprojectspythonproject1venvscr iptspython.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Ceyhun\AppData\Local\Temp\pip-in
    stall-6qgdoydg\pycrypto_819447fbc0f54a6b918749b38e5619df \setup.py'"'"'; __file__='"'"'C:\Users\Ceyhun\AppData\Local\Temp\p ip-install-6qgdoydg\pycrypto_819447fbc0f54a6b918749b38e5619df \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'"'"'))' ins
    tall --record 'C:UsersCeyhunAppDataLocalTemppip-record-hqzubr8minstall-record.txt' --single-version-externally-managed --compile --install-headers 'c:usersceyhunpycharmprojectspythonproject1venvinc ludesitepython3.7pycry
    pto' Check the logs for full command output.
  • 14-12-2021, 07:12:01
    #4
    Üyeliği durduruldu
    Microsoft C++ Build Tools kurmanız lazım veya kuruluysa mimari değişiklikleri nedeniyle bu sorunu çıkarıyor olabilir
  • 14-12-2021, 07:14:41
    #5
    Hatayı görünce girip kurdum ama şimdi gördüm ki tam kurmamışım. Tekrar deneyeceğim. Çok teşekkür ederim
  • 14-12-2021, 10:42:23
    #6
    @cryhun; hangi program kullanıyorsunuz? Hani tabletse eğer pydroid 3 öneriririm. Onda kütüphane hatası pek çıkmıyor. Ama bilgisayarsa pycharm iyi sanırım. 🙂