I have just installed pandas_datareader
using pip install pandas-datareader
which ran successfully.
Now I am trying to use it for a tutorial and I am getting this error when I try to import.
import pandas_datareader as pdr
ModuleNotFoundError: No module named 'pandas_datareader'
This is the link to the tutorial.
https://www.datacamp.com/community/tutorials/finance-python-trading#gs.DgsO1BY
Any ideas?
Type into Terminal:
pip install pandas_datareader
That's it
Ok the following steps resolved the "No module named 'pandas_datareader" issue for me. To be clear, my situation was such that I had already installed pandas_datareader via pip install pandas_datareader
but the "No module named 'pandas_datareader" error still kept popping up whenever I ran a .py code that imports pandas_datareader.
If you are in the same situation as I was (on Mac), this may help you.
Step 1: Uninstall the pandas_datareader package first:
pip uninstall pandas_datareader
Step 2: Restart your IDE if you were using one
Step 3:: re-install pandas_datareader package
again via terminal, type pip install pandas_datareader
your terminal may show you a bunch of "pre-installed" pandas_datareader package with message "Requirement already satisfied..."
ignore those.
Step 4: Run your python code again
Hope this helps.
In your Anaconda Prompt, do this : pip install pandas_datareader
All the other methods didn't work for me.
In command prompt:
conda install -c delichon pandas_datareader
This is working fine on 22nd sept 2019 make sure to update pip.
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