No-module named pandas-datareader

亡梦爱人 提交于 2019-12-24 17:37:12

问题


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~


回答1:


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>



回答2:


are you on windows or linux?? if linux:

sudo python3 -m pip install pandas_datareader

This is the most saftest way to install any module in python when we have multiple versions in system installed. Hope this helps!



来源:https://stackoverflow.com/questions/50016220/no-module-named-pandas-datareader

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!