You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

安装pycrypto库时遭遇subprocess-exited-with-error错误的解决求助

安装pycrypto库时遭遇subprocess-exited-with-error错误的解决求助

我最近在安装pycrypto库,打算用它来编写AES 128 CBC算法的代码,但安装过程中碰到了报错,具体的错误信息如下:

C:\python\python_InternalLock>pip install pycrypto
Collecting pycrypto
  Downloading pycrypto-2.6.1.tar.gz (446 kB)
     ---------------------------------------- 446.2/446.2 kB 2.3 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: pycrypto
  Building wheel for pycrypto (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [2 lines of output]
      warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools"
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pycrypto

有没有大佬能告诉我该怎么解决这个问题呀?

备注:内容来源于stack exchange,提问作者zzunsun

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.16 07:12:59