Python 3.12.0
Try using an earlier version of python. distutils was deprecated in python 3.10, and removed in python 3.12. https://docs.python.org/3.12/whatsnew/3.12.html#distutils
Fix:
Install pandas datareader as normal using: pip install pandas-datareader
Under Lib\site-packages\pandas_datareader\compat, open init.py
Remove the following import: from distutils.version import LooseVersion
Add the following import: from packaging.version import Version
Search(Ctrl+F) for LooseVersion and change to Version