Search code examples
python-3.xmacospandas-datareader

No-module named pandas-datareader


for mac, I have used

pip3 install pandas_datareader

and the cmd shows it is successful.

but when I try to import pandas_datareader in jupyter,

it shows me "No module named pandas_datareader"

my python version is 3.6

so what's the problem,and how could i do to fix it?

thanks all~


Solution

  • Here is a global solution. Your case may be solved by

    • python -m pip install <package> (mentioned there, avoid using sudo ... but it's up to you)
    • or directly to install a pip package in the current Jupyter kernel:

    In [1]:

    import sys
    !{sys.executable} -m pip install <package>