'Illegal instruction' when run 'streamlit hello'


I’m trying to use streamlit in my Python scripts. So, to do that installed it running ‘pip install streamlit’ and the installation executed with no error message. But when I run ‘streamlit hello’ I get ‘Illegal instruction (core dumped)’. The same thing happens when I try to import it in a python script with ‘import streamlit’ or use venv.

How can I fix this?

System: Ubuntu 22.04.2 LTS - codename:jammy
Python: Python 3.10.6
uname -m: x86_64

Hey @Antonio_Caipora, what version of Streamlit are you running? Seems similar to the issue described here

@Antonio_Caipora try
python -m streamlit hello

It worked in my case.