鱼C论坛

 找回密码
 立即注册
查看: 2961|回复: 2

[已解决]这个是什么问题呀,要怎么解决呀。看不懂

[复制链接]
发表于 2023-2-10 14:03:38 | 显示全部楼层 |阅读模式
20鱼币
B]{~($S)4B0ZTYJCL)04{03.png _O7)3XIDX5MXMFYP}LGTI.png
  1. Collecting pycrypto
  2.   Using cached pycrypto-2.6.1.tar.gz (446 kB)
  3.   Preparing metadata (setup.py) ... done
  4. Installing collected packages: pycrypto
  5.   DEPRECATION: pycrypto is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  6.   Running setup.py install for pycrypto ... error
  7.   error: subprocess-exited-with-error

  8.   × Running setup.py install for pycrypto did not run successfully.
  9.   │ exit code: 1
  10.   ╰─> [151 lines of output]
  11.       running install
  12.       C:\Users\misaka\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  13.         warnings.warn(
  14.       running build
  15.       running build_py
  16.       creating build
  17.       creating build\lib.win-amd64-cpython-311
  18.       creating build\lib.win-amd64-cpython-311\Crypto
  19.       copying lib\Crypto\pct_warnings.py -> build\lib.win-amd64-cpython-311\Crypto
  20.       copying lib\Crypto\__init__.py -> build\lib.win-amd64-cpython-311\Crypto
  21.       creating build\lib.win-amd64-cpython-311\Crypto\Hash
  22.       copying lib\Crypto\Hash\hashalgo.py -> build\lib.win-amd64-cpython-311\Crypto\Hash
  23.       copying lib\Crypto\Hash\HMAC.py -> build\lib.win-amd64-cpython-311\Crypto\Hash
  24.       copying lib\Crypto\Hash\MD2.py -> build\lib.win-amd64-cpython-311\Crypto\Hash
  25.       copying lib\Crypto\Hash\MD4.py -> build\lib.win-amd64-cpython-311\Crypto\Hash
  26.       copying lib\Crypto\Hash\MD5.py -> build\lib.win-amd64-cpython-311\Crypto\Hash
  27.       copying lib\Crypto\Hash\RIPEMD.py -> build\lib.win-amd64-cpython-311\Crypto\Hash
  28.       copying lib\Crypto\Hash\SHA.py -> build\lib.win-amd64-cpython-311\Crypto\Hash
  29.       copying lib\Crypto\Hash\SHA224.py -> build\lib.win-amd64-cpython-311\Crypto\Hash
  30.       copying lib\Crypto\Hash\SHA256.py -> build\lib.win-amd64-cpython-311\Crypto\Hash
  31.       copying lib\Crypto\Hash\SHA384.py -> build\lib.win-amd64-cpython-311\Crypto\Hash
  32.       copying lib\Crypto\Hash\SHA512.py -> build\lib.win-amd64-cpython-311\Crypto\Hash
  33.       copying lib\Crypto\Hash\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\Hash
  34.       creating build\lib.win-amd64-cpython-311\Crypto\Cipher
  35.       copying lib\Crypto\Cipher\AES.py -> build\lib.win-amd64-cpython-311\Crypto\Cipher
  36.       copying lib\Crypto\Cipher\ARC2.py -> build\lib.win-amd64-cpython-311\Crypto\Cipher
  37.       copying lib\Crypto\Cipher\ARC4.py -> build\lib.win-amd64-cpython-311\Crypto\Cipher
  38.       copying lib\Crypto\Cipher\blockalgo.py -> build\lib.win-amd64-cpython-311\Crypto\Cipher
  39.       copying lib\Crypto\Cipher\Blowfish.py -> build\lib.win-amd64-cpython-311\Crypto\Cipher
  40.       copying lib\Crypto\Cipher\CAST.py -> build\lib.win-amd64-cpython-311\Crypto\Cipher
  41.       copying lib\Crypto\Cipher\DES.py -> build\lib.win-amd64-cpython-311\Crypto\Cipher
  42.       copying lib\Crypto\Cipher\DES3.py -> build\lib.win-amd64-cpython-311\Crypto\Cipher
  43.       copying lib\Crypto\Cipher\PKCS1_OAEP.py -> build\lib.win-amd64-cpython-311\Crypto\Cipher
  44.       copying lib\Crypto\Cipher\PKCS1_v1_5.py -> build\lib.win-amd64-cpython-311\Crypto\Cipher
  45.       copying lib\Crypto\Cipher\XOR.py -> build\lib.win-amd64-cpython-311\Crypto\Cipher
  46.       copying lib\Crypto\Cipher\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\Cipher
  47.       creating build\lib.win-amd64-cpython-311\Crypto\Util
  48.       copying lib\Crypto\Util\asn1.py -> build\lib.win-amd64-cpython-311\Crypto\Util
  49.       copying lib\Crypto\Util\Counter.py -> build\lib.win-amd64-cpython-311\Crypto\Util
  50.       copying lib\Crypto\Util\number.py -> build\lib.win-amd64-cpython-311\Crypto\Util
  51.       copying lib\Crypto\Util\py3compat.py -> build\lib.win-amd64-cpython-311\Crypto\Util
  52.       copying lib\Crypto\Util\randpool.py -> build\lib.win-amd64-cpython-311\Crypto\Util
  53.       copying lib\Crypto\Util\RFC1751.py -> build\lib.win-amd64-cpython-311\Crypto\Util
  54.       copying lib\Crypto\Util\winrandom.py -> build\lib.win-amd64-cpython-311\Crypto\Util
  55.       copying lib\Crypto\Util\_number_new.py -> build\lib.win-amd64-cpython-311\Crypto\Util
  56.       copying lib\Crypto\Util\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\Util
  57.       creating build\lib.win-amd64-cpython-311\Crypto\Random
  58.       copying lib\Crypto\Random\random.py -> build\lib.win-amd64-cpython-311\Crypto\Random
  59.       copying lib\Crypto\Random\_UserFriendlyRNG.py -> build\lib.win-amd64-cpython-311\Crypto\Random
  60.       copying lib\Crypto\Random\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\Random
  61.       creating build\lib.win-amd64-cpython-311\Crypto\Random\Fortuna
  62.       copying lib\Crypto\Random\Fortuna\FortunaAccumulator.py -> build\lib.win-amd64-cpython-311\Crypto\Random\Fortuna
  63.       copying lib\Crypto\Random\Fortuna\FortunaGenerator.py -> build\lib.win-amd64-cpython-311\Crypto\Random\Fortuna
  64.       copying lib\Crypto\Random\Fortuna\SHAd256.py -> build\lib.win-amd64-cpython-311\Crypto\Random\Fortuna
  65.       copying lib\Crypto\Random\Fortuna\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\Random\Fortuna
  66.       creating build\lib.win-amd64-cpython-311\Crypto\Random\OSRNG
  67.       copying lib\Crypto\Random\OSRNG\fallback.py -> build\lib.win-amd64-cpython-311\Crypto\Random\OSRNG
  68.       copying lib\Crypto\Random\OSRNG\nt.py -> build\lib.win-amd64-cpython-311\Crypto\Random\OSRNG
  69.       copying lib\Crypto\Random\OSRNG\posix.py -> build\lib.win-amd64-cpython-311\Crypto\Random\OSRNG
  70.       copying lib\Crypto\Random\OSRNG\rng_base.py -> build\lib.win-amd64-cpython-311\Crypto\Random\OSRNG
  71.       copying lib\Crypto\Random\OSRNG\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\Random\OSRNG
  72.       creating build\lib.win-amd64-cpython-311\Crypto\SelfTest
  73.       copying lib\Crypto\SelfTest\st_common.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest
  74.       copying lib\Crypto\SelfTest\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest
  75.       creating build\lib.win-amd64-cpython-311\Crypto\SelfTest\Cipher
  76.       copying lib\Crypto\SelfTest\Cipher\common.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Cipher
  77.       copying lib\Crypto\SelfTest\Cipher\test_AES.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Cipher
  78.       copying lib\Crypto\SelfTest\Cipher\test_ARC2.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Cipher
  79.       copying lib\Crypto\SelfTest\Cipher\test_ARC4.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Cipher
  80.       copying lib\Crypto\SelfTest\Cipher\test_Blowfish.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Cipher
  81.       copying lib\Crypto\SelfTest\Cipher\test_CAST.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Cipher
  82.       copying lib\Crypto\SelfTest\Cipher\test_DES.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Cipher
  83.       copying lib\Crypto\SelfTest\Cipher\test_DES3.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Cipher
  84.       copying lib\Crypto\SelfTest\Cipher\test_pkcs1_15.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Cipher
  85.       copying lib\Crypto\SelfTest\Cipher\test_pkcs1_oaep.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Cipher
  86.       copying lib\Crypto\SelfTest\Cipher\test_XOR.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Cipher
  87.       copying lib\Crypto\SelfTest\Cipher\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Cipher
  88.       creating build\lib.win-amd64-cpython-311\Crypto\SelfTest\Hash
  89.       copying lib\Crypto\SelfTest\Hash\common.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Hash
  90.       copying lib\Crypto\SelfTest\Hash\test_HMAC.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Hash
  91.       copying lib\Crypto\SelfTest\Hash\test_MD2.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Hash
  92.       copying lib\Crypto\SelfTest\Hash\test_MD4.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Hash
  93.       copying lib\Crypto\SelfTest\Hash\test_MD5.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Hash
  94.       copying lib\Crypto\SelfTest\Hash\test_RIPEMD.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Hash
  95.       copying lib\Crypto\SelfTest\Hash\test_SHA.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Hash
  96.       copying lib\Crypto\SelfTest\Hash\test_SHA224.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Hash
  97.       copying lib\Crypto\SelfTest\Hash\test_SHA256.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Hash
  98.       copying lib\Crypto\SelfTest\Hash\test_SHA384.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Hash
  99.       copying lib\Crypto\SelfTest\Hash\test_SHA512.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Hash
  100.       copying lib\Crypto\SelfTest\Hash\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Hash
  101.       creating build\lib.win-amd64-cpython-311\Crypto\SelfTest\Protocol
  102.       copying lib\Crypto\SelfTest\Protocol\test_AllOrNothing.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Protocol
  103.       copying lib\Crypto\SelfTest\Protocol\test_chaffing.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Protocol
  104.       copying lib\Crypto\SelfTest\Protocol\test_KDF.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Protocol
  105.       copying lib\Crypto\SelfTest\Protocol\test_rfc1751.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Protocol
  106.       copying lib\Crypto\SelfTest\Protocol\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Protocol
  107.       creating build\lib.win-amd64-cpython-311\Crypto\SelfTest\PublicKey
  108.       copying lib\Crypto\SelfTest\PublicKey\test_DSA.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\PublicKey
  109.       copying lib\Crypto\SelfTest\PublicKey\test_ElGamal.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\PublicKey      copying lib\Crypto\SelfTest\PublicKey\test_importKey.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\PublicKey
  110.       copying lib\Crypto\SelfTest\PublicKey\test_RSA.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\PublicKey
  111.       copying lib\Crypto\SelfTest\PublicKey\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\PublicKey
  112.       creating build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random
  113.       copying lib\Crypto\SelfTest\Random\test_random.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random
  114.       copying lib\Crypto\SelfTest\Random\test_rpoolcompat.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random
  115.       copying lib\Crypto\SelfTest\Random\test__UserFriendlyRNG.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random
  116.       copying lib\Crypto\SelfTest\Random\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random
  117.       creating build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random\Fortuna
  118.       copying lib\Crypto\SelfTest\Random\Fortuna\test_FortunaAccumulator.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random\Fortuna
  119.       copying lib\Crypto\SelfTest\Random\Fortuna\test_FortunaGenerator.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random\Fortuna
  120.       copying lib\Crypto\SelfTest\Random\Fortuna\test_SHAd256.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random\Fortuna
  121.       copying lib\Crypto\SelfTest\Random\Fortuna\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random\Fortuna
  122.       creating build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random\OSRNG
  123.       copying lib\Crypto\SelfTest\Random\OSRNG\test_fallback.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random\OSRNG
  124.       copying lib\Crypto\SelfTest\Random\OSRNG\test_generic.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random\OSRNG
  125.       copying lib\Crypto\SelfTest\Random\OSRNG\test_nt.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random\OSRNG
  126.       copying lib\Crypto\SelfTest\Random\OSRNG\test_posix.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random\OSRNG
  127.       copying lib\Crypto\SelfTest\Random\OSRNG\test_winrandom.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random\OSRNG
  128.       copying lib\Crypto\SelfTest\Random\OSRNG\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Random\OSRNG
  129.       creating build\lib.win-amd64-cpython-311\Crypto\SelfTest\Util
  130.       copying lib\Crypto\SelfTest\Util\test_asn1.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Util
  131.       copying lib\Crypto\SelfTest\Util\test_Counter.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Util
  132.       copying lib\Crypto\SelfTest\Util\test_number.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Util
  133.       copying lib\Crypto\SelfTest\Util\test_winrandom.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Util
  134.       copying lib\Crypto\SelfTest\Util\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Util
  135.       creating build\lib.win-amd64-cpython-311\Crypto\SelfTest\Signature
  136.       copying lib\Crypto\SelfTest\Signature\test_pkcs1_15.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Signature
  137.       copying lib\Crypto\SelfTest\Signature\test_pkcs1_pss.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Signature
  138.       copying lib\Crypto\SelfTest\Signature\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\SelfTest\Signature
  139.       creating build\lib.win-amd64-cpython-311\Crypto\Protocol
  140.       copying lib\Crypto\Protocol\AllOrNothing.py -> build\lib.win-amd64-cpython-311\Crypto\Protocol
  141.       copying lib\Crypto\Protocol\Chaffing.py -> build\lib.win-amd64-cpython-311\Crypto\Protocol
  142.       copying lib\Crypto\Protocol\KDF.py -> build\lib.win-amd64-cpython-311\Crypto\Protocol
  143.       copying lib\Crypto\Protocol\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\Protocol
  144.       creating build\lib.win-amd64-cpython-311\Crypto\PublicKey
  145.       copying lib\Crypto\PublicKey\DSA.py -> build\lib.win-amd64-cpython-311\Crypto\PublicKey
  146.       copying lib\Crypto\PublicKey\ElGamal.py -> build\lib.win-amd64-cpython-311\Crypto\PublicKey
  147.       copying lib\Crypto\PublicKey\pubkey.py -> build\lib.win-amd64-cpython-311\Crypto\PublicKey
  148.       copying lib\Crypto\PublicKey\RSA.py -> build\lib.win-amd64-cpython-311\Crypto\PublicKey
  149.       copying lib\Crypto\PublicKey\_DSA.py -> build\lib.win-amd64-cpython-311\Crypto\PublicKey
  150.       copying lib\Crypto\PublicKey\_RSA.py -> build\lib.win-amd64-cpython-311\Crypto\PublicKey
  151.       copying lib\Crypto\PublicKey\_slowmath.py -> build\lib.win-amd64-cpython-311\Crypto\PublicKey
  152.       copying lib\Crypto\PublicKey\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\PublicKey
  153.       creating build\lib.win-amd64-cpython-311\Crypto\Signature
  154.       copying lib\Crypto\Signature\PKCS1_PSS.py -> build\lib.win-amd64-cpython-311\Crypto\Signature
  155.       copying lib\Crypto\Signature\PKCS1_v1_5.py -> build\lib.win-amd64-cpython-311\Crypto\Signature
  156.       copying lib\Crypto\Signature\__init__.py -> build\lib.win-amd64-cpython-311\Crypto\Signature
  157.       running build_ext
  158.       warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
  159.       building 'Crypto.Random.OSRNG.winrandom' extension
  160.       error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  161.       [end of output]

  162.   note: This error originates from a subprocess, and is likely not a problem with pip.
  163. error: legacy-install-failure

  164. × Encountered error while trying to install package.
  165. ╰─> pycrypto

  166. note: This is an issue with the package mentioned above, not pip.
  167. hint: See above for output from the failure.
复制代码
最佳答案
2023-2-10 14:03:39
装 pycryptodome 吧

  1. pip install pycryptodome
复制代码

最佳答案

查看完整内容

装 pycryptodome 吧
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2023-2-10 14:03:39 | 显示全部楼层    本楼为最佳答案   
装 pycryptodome 吧

  1. pip install pycryptodome
复制代码
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2023-2-10 14:31:59 From FishC Mobile | 显示全部楼层
第161行 需要 Microsoft C++ Build Tools,这里的链接应该能用
然而 pycrypto 已经太老了,考虑换新的吧,Cryptography 或者 PyCryptodome,前者似乎更推荐(https://www.pycrypto.org/)
https://cryptography.io/
https://pypi.org/project/cryptography
https://www.pycryptodome.org/
https://pypi.org/project/pycryptodome
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-4-24 22:56

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表