Change version of Python in Streamlit server during deployment?

I am snscrape in my program and it works only on python 3.8 and above. Can we change the default python 3.7 to 3.8 in the streamlit server during deploying?