Reputation: 33
I am trying to create a candlestick / OHLC graph in jupyter notebook using closing stock data extracted from Stooq. I tried several different things to try and install mplfinance to get the candlestick_ohc imported, and keep getting different error messages no matter what I try. Below are the different things I tried:
Installed this successfully using Python in Terminal: 'pip install https://github.com/matplotlib/mpl_finance/archive/master.zip'
And this in Terminal, which worked: 'pip install mpl_finance'
'from mpl_finance import candlestick_ohlc'
I get this error message: 'from: can't read /var/mail/mpl_finance'
And yes, I have also upgraded mplfinance as well.
`import matplotlib.pyplot as plt
from matplotlib.finance import candlestick_ohlc
import matplotlib.dates as mdates'
And get this error message: 'No module named 'matplotlib.finance''
My question is, why do I keep getting error messages for matplotlib.finance when I have installed it in the Terminal? What am I missing or doing wrong?
Upvotes: 1
Views: 842
Reputation: 7714
There is a new version of matplotlib finance, along with documentation, here:
https://pypi.org/project/mplfinance/
https://github.com/matplotlib/mplfinance
Install with: pip install --upgrade mplfinance
NOTE: The package name no longer has the dash or underscore: It is now mplfinance (not mpl-finance, nor mpl_finance)
Upvotes: 1