找不到模块matplotlib.finance

我最近安装了最新版本的Anaconda。当我尝试导入matplotlib.finance时,在spyder中出现module does not exist错误。

  

matplotlib和mpl-finance已安装。

我应该怎么做才能解决此问题?

我在python 3.7中具有以下代码的以下问题 从matplotlib.finance导入Candlestick_ohlc

   File "<ipython-input-1-7ea83a59eaf3>",line 1,in <module>
     from matplotlib.finance import candlestick_ohlc

ModuleNotFoundError: No module named 'matplotlib.finance'
nihaihaoma520 回答:找不到模块matplotlib.finance

matplotlib.finance不存在(不再存在)。

如果已安装mpl-finance,则需要将其导入为mpl_finance,例如

from mpl_finance import candlestick_ohlc
,

此模块现在有新版本。试试这个:https://pypi.org/project/mplfinance/

本文链接:https://www.f2er.com/3035648.html

大家都在问