No module named pandas_datareader

后端 未结 12 1693
日久生厌
日久生厌 2021-02-07 06:58

I have just installed pandas_datareader using pip install pandas-datareader which ran successfully.

Now I am trying to use it for a tutorial an

相关标签:
12条回答
  • 2021-02-07 07:41

    Type into Terminal:

    pip install pandas_datareader
    

    That's it

    0 讨论(0)
  • 2021-02-07 07:41

    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.

    0 讨论(0)
  • 2021-02-07 07:43

    In your Anaconda Prompt, do this : pip install pandas_datareader

    0 讨论(0)
  • 2021-02-07 07:50

    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:

    • via terminal, type pip uninstall pandas_datareader
    • it will prompt you asking for a y/n answer to proceed with the uninstallation
    • type 'y'

    Step 2: Restart your IDE if you were using one

    • in my case, I was using MS VSC (Visual Studio Code)

    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

    • the "No module named 'pandas_datareader" error should be gone this time round.

    Hope this helps.

    0 讨论(0)
  • 2021-02-07 07:55

    Got this error even though I had pandas_datareader installed. Running on Windows. py -3 -m pip install pandas_datareader in the command prompt didn't work. Same in anaconda prompt didn't work. pip uninstall pandas_datareader followed by pip install pandas_datareader and a reboot finally fixed my problem.

    TLDR if running on a Windows machine, uninstall pandas_datareader if you have it (pip uninstall pandas_datareader) and then reinstall with 'pip install pandas_datareader'.

    0 讨论(0)
  • 2021-02-07 07:59

    Had the same issue. This resolved it for me:

    after activating the env, run:

    pip install pip --upgrade
    pip install pandas-datareader
    pip install jupyter (as i was using a jupyter notebook)
    

    However, if you are running anaconda, use:

    conda install -c anaconda pandas-datareader
    
    0 讨论(0)
提交回复
热议问题