ModulenotFoundError: Kein Modul mit dem Namen "YFInance" - Importieren von Yahoo Finance & Financials in Python
Posted: 04 Feb 2025, 16:07
Ich verwende Mac OS und empfange einen Fehler, wenn ich Folgendes mache: < /p>
Es ist also installiert und sein Weg ist der von Python3, dem neuesten Python. /> Danke
[Bearbeiten]
Ich leite Spyder aus der Standard -Spyder -Umgebung aus. < /P>
Code: Select all
import pandas as pd
import yfinance as yf
from yahoofinancials import YahooFinancials
< /code>
modulenotFoundError: kein Modul mit dem Namen 'YFInance' < /p>
< /blockquote>
Ich habe PIP überprüft ist in der neuesten Version installiert und ich habe PIP -Liste erstellt und YFInance ist da drin.pip show yfinance
Name: yfinance
Version: 0.1.70
Summary: Download market data from Yahoo! Finance API
Home-page: https://github.com/ranaroussi/yfinance
Author: Ran Aroussi
Author-email: ran@aroussi.com
License: Apache
Location: /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages
Requires: lxml, multitasking, numpy, pandas, requests
Required-by:
MacBook-Air:~ User$
[Bearbeiten]
Ich leite Spyder aus der Standard -Spyder -Umgebung aus. < /P>