Streamlit share uses both python 3.8 and 3.7 at the same time

I wonder why the stack trace on streamlit share shows 2 different python versions and virtual environments being used. I explicitly stated I wanted python 3.8

File "/home/appuser/venv/lib/python3.8/site-packages/streamlit/", line 379, in _run_script
    exec(code, module.__dict__)
File "/app/gui/", line 165, in <module>
    run_func(method_obj, args) ## this is my own code
File "/home/appuser/.conda/lib/python3.7/site-packages/requests/", line 117, in post
    return request('post', url, data=data, json=json, **kwargs)

Hi @david-fortini, welcome to the Streamlit community!

Are you doing a subprocess of some sort? Without seeing the code, the only way I can imagine having multiple python interpreters running would be this issue:


Late answer, unfortunately no. Streamlit share somehow has this sort of issues quite often that do not make it so reliable for deployment long-term.

If you can post the code that demonstrates this, it would be helpful. It’s hard to understand how you can make Python use two different interpreters without using a subprocess.