from Crypto.PublicKey import RSA ModuleNotFoundError: No module named 'Crypto'
时间: 2023-10-15 14:28:00 浏览: 341
这个错误提示是因为在使用"from Crypto.PublicKey import RSA"时找不到"Crypto"模块。解决这个问题的方法是安装pycryptodome库。你可以使用以下命令来安装pycryptodome库:pip install pycryptodome。如果在安装之前已经存在crypto或pycrypto文件夹,你需要先使用pip uninstall crypto和pip uninstall pycrypto来卸载它们,否则安装可能会失败。安装完成后,你还需要将site-packages文件夹中crypto文件夹的第一个字母"c"改为大写的"C"。这样,你就可以成功导入"from Crypto.PublicKey import RSA"了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [【报错】python3.7报错:ModuleNotFoundError:No module named “Crypto](https://blog.csdn.net/qq_33966519/article/details/109307753)[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: 50%"]
- *3* [Crypto.PublicKey.RSA遇到的问题:from Crypto.PublicKey import RSA ModuleNotFoundError: No module](https://blog.csdn.net/qq_36485259/article/details/120455818)[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: 50%"]
[ .reference_list ]
阅读全文