I am using python 3.12 on Pycharm and I have been trying to use the pandas_datareader module. After doing "pip install pandas_datareader" in the Command Prompt, I went to the documentation to look at where to begin. After trying what they said to do, I got an error saying "No module named 'distutils'"
import pandas_datareader as pdr
pdr.get_data_fred('AAPL')
That is the code I used
try
pip install setuptools(or pipenv)