Error when installing Crypto: NomodulenamedCrypto.Cipher

Error when installing Crypto: NomodulenamedCrypto.Cipher

Baidu took a long time to solve...

First pip install Crypto directly

At this time, the crypto folder will be generated under the lib/site-packages/ folder and renamed to Crypto

... However, there is no Cipher module in this folder, and a pycrypto needs to be installed by pip. However, to install this under windows, it needs to be compiled and requires Microsoft Visual C++ Compiler for Python 2.7, so you can install pycryptodome instead

pip install pycryptodome

Then you can use Import Crypto.Cipher without error

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325290356&siteId=291194637