'pip install yahoo-finance with jupyter notebook

I tried to install yahoo finance in terminal with pip install yahoo-finance so I can run yahoo finance in jupyter notebook. While there's nothing happened after I typed in my terminal, so there's an error said ModuleNotFoundError: No module named 'yahoo_finance' in jupyter noterbook.

Could someone give me any advice? Thanks!



Solution 1:[1]

I know I'm a little late to answer this but I ran this in my Jupyter notebook for Python:

!pip install yfinance

and it worked correctly. (It also works in Google Colab.) Hope this helped!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Simon Champney