from Cryptodome.Cipher import AES
时间: 2023-11-18 18:12:48 浏览: 297
从引用中可以得知,当使用from Cryptodome.C import AES时,需要先卸载Crypto和pycrypto库,然后安装pycryptodome库。具体卸载命令为 uninstall Crypto和pip uninstall pycrypto,安装命令为pip install pycryptodome。这样就可以成功导入Cryptodome库中的AES模块。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Python安装Crypto库报错(from Crypto.Cipher import AES ModuleNotFoundError: No module named ‘Crypto...](https://blog.csdn.net/qq_43589852/article/details/125928232)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文