I used this command line in the terminal to get the module:
$ pip install yahoo-finance
I used this code to check the module was imported correctly, but it says there no module called yahoo_finance
from yahoo_finance import Share
yahoo = Share('YHOO')
print (yahoo.get_price())
What am I missing?
Check if you use the right version of python
pip install
install library to modules of python 2 while your code is using python3.
Try to use
$ pip3 install yahoo-finance
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With