jupyter中ModuleNotFoundError: No module named 'lightgbm'
时间: 2023-08-28 21:18:34 浏览: 220
Python模块导入出现ModuleNotFoundError: No module named ‘***’
5星 · 资源好评率100%
您在Jupyter中遇到的ModuleNotFoundError: No module named 'lightgbm'的错误可能有几个原因。首先,您需要确认您的虚拟环境中是否已经安装了lightgbm模块。如果没有安装,您可以使用pip命令在虚拟环境中安装该模块。请确保您已经激活了虚拟环境,然后运行以下命令来安装lightgbm模块:pip install lightgbm。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [jupyter notebook导入模块时报错:ModuleNotFoundError: No module named](https://blog.csdn.net/weixin_44336956/article/details/115565152)[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^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Anaconda虚拟环境安装宏包后在Jupyter Notebook中调用时显示ModuleNotFoundError: No module named ‘xxx](https://blog.csdn.net/qq_42886635/article/details/120750931)[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^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文