Solve the error and problem analysis of cannot import name'finance' from'matplotlib'

Solution

First install:

pip install mplfinance

Then use the following code in the code to be like use finance:

import mplfinance

If it is an existing code, just rename it:

import mplfinance as finance

Problem resolution

financeHas been matplotlibdeprecated in the new version , just install additional

Guess you like

Origin blog.csdn.net/weixin_35757704/article/details/113800149