I write this code:
import pandas as pd
import numpy as np
from sklearn.linear_model import LinearRegression
from yahoofinancials import YahooFinancials
yahoo_finance = YahooFinancials(str(stock))
stats=(yahoo_finance.get_historical_price_data("2010-01-01", "2021-04-30", "daily"))
I am already install yahoo-finance1.4.0, yahoofinancials1.6 , yfinance0.1.59 anslo try this
Enter the following four lines in sequence, and execute once for each line:
pip install yahoo-finance
git clone git://github.com/lukaszbanasiak/yahoo-finance.git
cd yahoo-finance
python setup.py install
But still, it's show error "No module named 'yahoofinancials'"
I already check this code ">pip show yahoofinancials" and get this info
Name: yahoofinancials
Version: 1.6
Summary: A powerful financial data module used for pulling both fundamental and technical data from Yahoo Finance
Home-page: https://github.com/JECSand/yahoofinancials
Author: Connor Sanders
Author-email: connor@exceleri.com
License: MIT
Location: c:\users\user\stockspredct\lib\site-packages
Requires: beautifulsoup4, pytz
Required-by:
Please help me how I can fix this error