我分别尝试了pycrypto、pycryptodome和crypto。。但显示ModuleNotFoundError: No module named 'Crypto'
python -m venv .venv
.venvscriptsactivate
pip install pycryptodome
pip install pycrypto
pip install crypto
已安装上述所有库。。
(.venv) C:UsersGokulDesktopNew Meter>python send_string.py
Traceback (most recent call last):
File "C:UsersGokulDesktopNew Metersend_string.py", line 7, in <module>
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
简单地删除了我现有的pycrpto/pycryptodome-3.11.0文件夹,该文件夹位于。。\Python\Python310\Lib\site包(如果有..(,然后尝试
pip install pycryptodome