I am running Python 2.7 on Ubuntu 16. I have install matplotlib, but I'm getting the following error when I run a Python script. Any idea?
Here is the version number for matplotlib Version: 2.2.0
Traceback (most recent call last):
File "stock/app.py", line 24, in <module>
import scan
File "/home/ubuntu/eyefin/stock/scan.py", line 6, in <module>
from stock.chart import get_chart
File "/home/ubuntu/eyefin/stock/chart.py", line 4, in <module>
from matplotlib.finance import candlestick_ohlc
ImportError: No module named finance
Here is my Python script
import os
import re
from matplotlib.finance import candlestick_ohlc
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
from matplotlib.dates import num2date, date2num
import numpy as np
import matplotlib.dates
import pandas
from stock.models import Pricing, Symbol, Peak
from stock.utils import Utils
def get_chart(symbol_obj, title=None, caption=None):
...