当前位置: 首页 > 工具软件 > MPIR > 使用案例 >

windows下python安装PyCrypto 报错 GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.

慕阳
2023-12-01

由于本人要用百度云的BOS对象存储,安装SDK之前需要安装Pycrypto这个包,按了好长的时间一直报错,现在在网上搜了好多答案,综合起来,终于解决了,简单高效。如下:

python.exe -m pip install --no-index --find-links=https://github.com/sfbahr/PyCrypto-Wheels/raw/master/pycrypto-2.6.1-cp35-none-win_amd64.whl pycrypto
Looking in links: https://github.com/sfbahr/PyCrypto-Wheels/raw/master/pycrypto-2.6.1-cp35-none-win_amd64.whl
Collecting pycrypto
  Downloading https://github.com/sfbahr/PyCrypto-Wheels/raw/master/pycrypto-2.6.1-cp35-none-win_amd64.whl (522kB)
     |████████████████████████████████| 532kB 8.1kB/s
Installing collected packages: pycrypto
Successfully installed pycrypto-2.6.1

 类似资料: