Summary
I recently deleted Python 3.10 from my computer as I had both 3.10 and 3.9 installed. I’m now using 3.9. Now when I run streamlit hello/run
, I get this error:
zsh: /opt/homebrew/bin/streamlit: bad interpreter: /opt/homebrew/opt/python@3.10/bin/python3.10: no such file or directory
I have reinstalled streamlit using python3.9 -m pip install streamlit
and still nothing. There’s clearly some sort of missmatch between the streamlit
command and the streamlit python3.9 is using.
Debug info
- Streamlit version: 1.16.0
- Python version: 3.9
- OS version: MacOS 13.1
- Browser version: Chrome 108.0.5359.124
Additional info as seen in this post
$ echo $PATH
/opt/homebrew/Caskroom/miniforge/base/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin
$ which python3
/usr/bin/python3
$ which streamlit
/opt/homebrew/bin/streamlit
$ python3
>>> import streamlit
>>> streamlit.__file__
'~/Library/Python/3.9/lib/python/site-packages/streamlit/__init__.py'
Any help resolving would be much appreciated!