Prompt Detail:
If you are using Jupyter, make sure that you have installed pandas_datareader
in the same environment that Jupyter is running in.
To do this, you can open a Jupyter Notebook and run the following code:
python!pip install pandas_datareader
This will install the pandas_datareader
module in the environment that Jupyter is running in. Note that the exclamation mark before the pip install
command is used to run the command as a shell command within Jupyter.
After running the command, you can try importing the pandas_datareader
module in your Jupyter Notebook:
pythonimport pandas_datareader as pdr
If the import statement runs without errors, then pandas_datareader
should be installed and working properly. If you still encounter the ModuleNotFoundError
, you can try restarting the Jupyter Notebook kernel to ensure that the module is loaded properly.