No module named 'scipy.stats'
时间: 2023-08-25 08:05:56 浏览: 624
根据引用\[1\]和引用\[2\]的内容,出现"No module named 'scipy.stats'"的错误是因为环境中缺少了scipy包。解决这个问题的方法是使用pip或conda命令安装scipy包。你可以尝试使用以下命令进行安装:
- 使用pip安装:pip install scipy
- 使用conda安装:conda install scipy
- 使用pip镜像安装(更快速):pip install -i https://pypi.tuna.tsinghua.edu.cn/simple scipy
安装完成后,再次运行代码应该就不会出现"No module named 'scipy.stats'"的错误了。希望这个解决方案对你有帮助!
#### 引用[.reference_title]
- *1* [ModuleNotFoundError: No module named ‘scipy‘解决方案](https://blog.csdn.net/DHB1289752316/article/details/117849618)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [解决ModuleNotFoundError: No module named ‘scipy](https://blog.csdn.net/weixin_43994864/article/details/130076308)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Python出错汇总(3):No module named ‘scipy](https://blog.csdn.net/weixin_43476261/article/details/125044445)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文