TomAugspurger / effective-pandas

Source code for my collection of articles on using pandas.
https://leanpub.com/effective-pandas
Creative Commons Attribution 4.0 International
1.54k stars 383 forks source link

Python 3.6 pandas_datareader not found #20

Open ScottTuch opened 7 years ago

ScottTuch commented 7 years ago

I am running Windows 10 64 bit, python 3.6, spyder. I have both pandas_datareader and pandas_datareader-0.5.0.dist-info installed in the same site packages as pandas. When I attempt to import the module I receive the following error message:

Python 3.6.2 |Anaconda, Inc.| (default, Sep 19 2017, 08:03:39) [MSC v.1900 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information.

IPython 6.1.0 -- An enhanced Interactive Python.

import pandas as pd

import pandas_datareader as pdr Traceback (most recent call last):

File "", line 1, in import pandas_datareader as pdr

ModuleNotFoundError: No module named 'pandas_datareader'

Who do I import the pandas_datareader via another method or have python recognize the module?

TomAugspurger commented 7 years ago

Is your correct environment active when starting IPython?

jamesmyatt commented 6 years ago

Are you sure that the pandas-datareader package is installed?

cSharma19 commented 5 years ago

Just checking if a solution was found for this issue? I'm facing the same problem: confirming that both pandas and pandas_datareader exist in my test environment, nevertheless, when I use import pandas_datareader, I get "ModuleNotFoundError:no module named pandas_datareader".

TomAugspurger commented 5 years ago

Just FYI, I'm not really keeping this up to date. Eventually the content will make it's way into the pandas documentation itself.

On Wed, Aug 14, 2019 at 2:45 PM cSharma19 notifications@github.com wrote:

Just checking if a solution was found for this issue? I'm facing the same problem: confirming that both pandas and pandas_datareader exist in my test environment, nevertheless, when I use import pandas_datareader, I get "ModuleNotFoundError:no module named pandas_datareader".

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/TomAugspurger/effective-pandas/issues/20?email_source=notifications&email_token=AAKAOIUP7OYFHE5L4UQVBLTQEROEDA5CNFSM4D6JUKY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4J4WZA#issuecomment-521390948, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKAOIRGZXG27ALXB4QMSJ3QEROEDANCNFSM4D6JUKYQ .

cSharma19 commented 5 years ago

Thanks Tom - new here and still learning the etiquette. I'm hoping to see more responses to this issue....it's got me stumped completely,