Solve the problem of always prompting No module named “Crypto”

I ran the script today and found that it kept prompting that the Crypto package had been installed, and it was still the same:

Solution:

pip uninstall crypto pycryptodome
pip install pycryptodome

pycryptoand cryptois the same library, which cryptois also called in python pycrypto. It is a third-party library, but it has stopped updating, so it is not recommended to install it. pycryptodomeYes crypto, the extended version, the usage cryptois exactly the same as and can be completely replacedcrypto

If the above method still cannot solve the problem, you can find the following python \Lib\site-packages, and manually cryptochange it Crypto.

Guess you like

Origin blog.csdn.net/xiaofengdada/article/details/132321534