import yfinance as yf yf.set_tz_cache_location("custom/cache/location") ...