[英]No-module named pandas-datareader
for mac, I have used 对于Mac,我用过
pip3 install pandas_datareader
and the cmd shows it is successful. cmd显示它成功。
but when I try to import pandas_datareader in jupyter, 但是当我尝试在jupyter中导入pandas_datareader时,
it shows me "No module named pandas_datareader" 它向我显示“没有名为pandas_datareader的模块”
my python version is 3.6 我的python版本是3.6
so what's the problem,and how could i do to fix it? 那么问题是什么,我该如何解决?
thanks all~ 谢谢大家〜
are you on windows or linux?? 您在Windows还是Linux上? if linux: 如果是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. 当我们在系统中安装了多个版本时,这是在python中安装任何模块的最安全的方法。 Hope this helps! 希望这可以帮助!
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) python -m pip install <package>
(在那里提到,避免使用sudo
...,但sudo
你自己) In [1]: 在[1]中:
import sys !{sys.executable} -m pip install <package>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.