Crypto的诡异问题
类型:Windows
创建时间:2021-06-15 17:16:52
更新时间:2021-06-15 17:16:52
类型:Windows
更新时间:2021-06-15 17:16:52
在Windows上使用pip安装 crypto
pip3 install crypto
尝试导入crypto的对象时候出现错误
>>> from Crypto.Cipher import AES
Traceback (most recent call last):
File "<stdin>" , line 1, in <module>
NoduleNotFoundError: No module name 'Crypto'
分2步解决这个问题
- 卸载crypto然后安装pycryptodome
pip3 uninstall crypto pip3 install pycryptodome
- 定位到Python的安装目录,找到Libsite-packages,将crypto文件夹的首字母改成大写就可以了,crypto->Crypto
Linux只需要第一步
[[replyMessage== null?"发表评论":"@" + replyMessage.m_author]]
account_circle
email
web_asset
textsms
评论列表([[messageResponse.total]])
[[messageItem.m_author]]
[[messageItem.m_author]]
[[getEnviron(messageItem.m_environ)]]
[[subMessage.m_author]]
[[subMessage.m_author]]
@
[[subMessage.parent_message.m_author]]
[[subMessage.parent_message.m_author]]
[[getEnviron(messageItem.m_environ)]]