No module named 'mpl_finance
时间: 2023-08-21 21:17:32 浏览: 233
回答: 您遇到的问题是因为最新版本的matplotlib已经不再包含finance模块。但是您可以使用mpl_finance库来替代它。要解决这个问题,您可以通过命令行使用pip install命令手动安装mpl_finance库。例如,在终端模式下运行以下命令:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade mpl_finance。这将解决您的问题。\[1\]另外,您还可以尝试使用Pycharm终端来下载mpl_finance库,使用以下命令:pip install mpl_finance -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com。这也是一个可行的解决方法。\[2\]如果您需要更多的参考信息,可以查看这个链接:https://stackoverflow.com/questions/42373104/since-matplotlib-finance-has-been-deprecated-how-can-i-use-the-new-mpl-finance。\[3\]
#### 引用[.reference_title]
- *1* [ No module named finance)](https://blog.csdn.net/m0_47327165/article/details/113086444)[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^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Pycharm no module named ‘mpl_finance](https://blog.csdn.net/qq_41284164/article/details/121251616)[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^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [No module named finance](https://blog.csdn.net/qq_37193537/article/details/82627566)[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^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文