问题
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 usingsudo
... 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