Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

ModuleNotFoundError: No module named 'yfinance' - Importing Yahoo finance & Financials to Python

$
0
0

I'm using Mac OS and receiving an error when doing the following:

import pandas as pdimport yfinance as yffrom yahoofinancials import YahooFinancials

ModuleNotFoundError: No module named 'yfinance'

I've checked pip is installed to the latest version & I've done pip list and yfinance is in there.

I have also checked with:

pip show yfinanceName: yfinanceVersion: 0.1.70Summary: Download market data from Yahoo! Finance APIHome-page: https://github.com/ranaroussi/yfinanceAuthor: Ran AroussiAuthor-email: ran@aroussi.comLicense: ApacheLocation: /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packagesRequires: lxml, multitasking, numpy, pandas, requestsRequired-by: MacBook-Air:~ User$ 

So it's installed and its path is that of Python3 the latest python.

I'd really appreciate any suggestions!

Thanks

[EDIT]

I'm running Spyder from the default Spyder environment.


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>