只需在 Anaconda 提示符下运行此命令:
pip3 install yfinance
Below code:
python -m pip install yahoo-finance
works well
Version of Python: 3.7
Typing in : Anaconda Prompt
conda install -c conda-forge yfinance
conda install -c postelrich yahoo-finance
The simple command usually works:
pip install yahoo-finance
If this does not work usually anaconda has good packages that work with each other:
conda install yahoo-finance
Things that could introduce problems that are not solved by the above commands:
Based on the error I would recommend reinstalling Python with Anaconda and checking your internet connection.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.