Special instructions for a package

Normally I put in the yahoo finance package in the requirements.txt file of yfinance==0.1.54, but there has been a problem with yahoo and we now have to use pip upgrade yfinance --no-cache -dir. How do I put that into the app so that when it makes it it does the --no-cache -dir