'Problem with importing program for coding

I am trying to extract stock data and the first part of importing the programs says this message.

ModuleNotFoundError                       Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_23208/566689617.py in <module>
----> 1 import pandas_datareader.data as web
      2 import datetime
      3 import pandas as pd

ModuleNotFoundError: No module named 'pandas_datareader'


Solution 1:[1]

Try installing pandas_datareader:

pip install pandas-datareader

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 addno1