no module named IPython
时间: 2023-10-22 09:00:22 浏览: 236
回答: 当在Jupyter Notebook中引入IPython模块时报告模块不存在时,可能是由于Anaconda中的环境配置问题导致的。你在排查时尝试了在Anaconda中引入IPython失败,但是可以正常启动和使用IPython;而在命令行中尝试引入IPython也失败,但是可以正常启动和使用IPython。根据你提供的信息,可以看出在Anaconda的通用命令行环境中可以找到IPython,但是在创建的torch环境下找不到IPython,因此导致了"no module named IPython"的错误。解决这个问题的方法是重新安装IPython模块。你可以尝试在torch环境下使用conda命令进行安装,如下所示:
```shell
conda install -c anaconda ipython
```
这样就可以解决"no module named IPython"的问题了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Windows10 import Ipython时报告:No module named ‘Ipython](https://blog.csdn.net/weixin_45807767/article/details/121074729)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [报错ModuleNotFoundError: No module named ‘IPython](https://blog.csdn.net/tanmx219/article/details/120587250)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文