I've seen some similar issues, but haven't been able to solve mine, hence the post.
Operating system: Windows 10
IDE: VS Code
Python: 3.7.3
Distribution: Anaconda
ModuleNotFoundError Traceback (most recent call last)
in
----> 1 import pandas_datareader
ModuleNotFoundError: No module named 'pandas_datareader
I also ran : conda install -c anaconda ipykernel, and then attempted another import, only to get more detailed errors.

At this point - I'm not sure of what I'm doing...and I was hoping to get some advice before I break something on my system.....
thanks
Chet
You have an old pandas-datareader on your path. You need to remove it.
On Tue, Aug 13, 2019, 16:51 cSharma19 notifications@github.com wrote:
I've seen some similar issues, but haven't been able to solve mine, hence
the post.Operating system: Windows 10
IDE: VS Code
Python: 3.7.3
Distribution: Anaconda
- I created a virtual environment using Conda
- I installed pandas_datareader using: conda install -c anaconda
pandas-datareader- I confirmed that the package is present in the virtual enviroment
- pandas version: 0.25.0
- pandas_datarader:0.7.4
- When I run import pandas_datareader in VS Code (and I'm running the
command interactively/in Jupyter notebook), I get the following errorModuleNotFoundError Traceback (most recent call last)
in
----> 1 import pandas_datareaderModuleNotFoundError: No module named 'pandas_datareader
I also ran : conda install -c anaconda ipykernel, and then attempted
another import, only to get more detailed errors.[image: image]
https://user-images.githubusercontent.com/39869009/62979810-6ff78480-bdea-11e9-99ee-cd04aa5016e5.pngAt this point - I'm not sure of what I'm doing...and I was hoping to get
some advice before I break something on my system.....
thanks
Chet—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pydata/pandas-datareader/issues/661?email_source=notifications&email_token=ABKTSRNFAY4OLOPBBI3WL2LQEMUHRA5CNFSM4ILPDQD2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HFCDZ4Q,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABKTSRJYEBG273QTURLIF3TQEMUHRANCNFSM4ILPDQDQ
.
@bashtage - thanks for the response. I'm very new to this....would you mind elaborating a little more? As far as I know, I have the latest version of the install; this is the command I used.
https://anaconda.org/anaconda/pandas-datareader
Also, looks like this is a similar issue:
https://github.com/pydata/pandas-datareader/issues/655
but the suggestion there is to roll to a previous version of pandas, using pip install. I used conda (so I'll have to use a conda command to do this I think). But your suggestion is to remove the old pandas_datareader.......I'm not sure what to do next......would appreciate a little guidance.
You need to install using pip.
On Tue, Aug 13, 2019, 22:11 cSharma19 notifications@github.com wrote:
@bashtage https://github.com/bashtage - thanks for the response. I'm
very new to this....would you mind elaborating a little more? As far as I
know, I have the latest version of the install; this is the command I used.
https://anaconda.org/anaconda/pandas-datareader—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pydata/pandas-datareader/issues/661?email_source=notifications&email_token=ABKTSRIKWJ4YK5HK2HYS3U3QENZXNA5CNFSM4ILPDQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4HSFOY#issuecomment-521085627,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABKTSRK73W2DODNWSKALL43QENZXNANCNFSM4ILPDQDQ
.
Thanks. Doesn't work.
pip install pip --upgradepip install pandas-datareaderJust did this and it 100% works. If this doesn't solve your problem, then you need general Python support since it isn't a pdr issue.
Thanks for the help again. I think you're right...I'll look at Python support....this is the only package among the others (numpy, pandas, matplotlib,math etc.) that I'have had trouble with. Quite bewildered.
One last thing @bashtage - I believe you are addressing the question of being able to install the package, vs. using "import pandas_datareader". Correct? If so, then yes, I'm able to install the packages and I can see them listed in my test environment. What I'm not able to do is import the pdr into VS Code. Or are you confirming that you are able to perform the import successfully as well?
So turns out that I have to downgrade the pandas version. This is what I tried and it worked!
All commands ran fine. Whew. I'm closing this thread. Thanks for taking a look in any case @bashtage
I used number "3" after command pip3 and python3 and sudo:
sudo pip3 install pip --upgrade
sudo pip3 install pandas-datareader
- Create a new Python 3.7 virtual env
pip install pip --upgradepip install pandas-datareaderJust did this and it 100% works. If this doesn't solve your problem, then you need general Python support since it isn't a pdr issue.
In python 3.8 it doesn't working.
I managed to install via cmd line but not import this through conda. I get the error below:
Traceback (most recent call last):
File "/Users/mac/PycharmProjects/Pyhton for Finance/Finance/Finance 1 - Stocks list.py", line 4, in
import pandas_datareader as web
ModuleNotFoundError: No module named 'pandas_datareader'
https://www.youtube.com/watch?v=dhQwVAVYy7k
Made a video on the things I did to fix... not a good coder but it got it to work for me.
Most helpful comment
pip install pip --upgradepip install pandas-datareaderJust did this and it 100% works. If this doesn't solve your problem, then you need general Python support since it isn't a pdr issue.