You install the yfinance?
pip install yfinance
This work here. Try to create a virtual environment first (https://docs.python.org/3/library/venv.html) I used yfinance in this repository, take a look, i hope that can help you https://github.com/Douglas019BR/COWDOL