安装pycrypto2.6.1报错

C:\Users\xxx\Downloads\pycrypto-2.6.1\pycrypto-2.6.1>python setup.py install
running install
running build
running build_py
running build_ext
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Random.OSRNG.winrandom' extension
error: Unable to find vcvarsall.bat

C:\Users\xxx\Downloads\pycrypto-2.6.1\pycrypto-2.6.1>

https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz

 

https://blog.csdn.net/a624806998/article/details/78596543

 看到要装vc这种庞然大物我绝望了。还是换个法子吧

pip install pycryptodome

 用这个模块也能满足目前的需求

参考https://blog.csdn.net/litian9898/article/details/79296525

posted @ 2018-10-27 10:10  xiaodebing  阅读(1562)  评论(0编辑  收藏  举报