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/script_runner.py", line 379, in _run_script
    exec(code, module.__dict__)
File "/app/gui/app.py", line 165, in <module>
    run_func(method_obj, args) ## this is my own code
File "/home/appuser/.conda/lib/python3.7/site-packages/requests/api.py", 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:

Best,
Randy

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.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.