Can't open file [Errno 2] No such file or directory Mac Monterey 12.7.4 using Python 3.11 VC

Hello everyone I’m working on an app running it locally on Mac Monterey 12.7.4 using Python 3.11 VC
I was using 3.6.8 when I first coded the app but because I needed streamlit components that only support 3.8 and above I had to uninstall Python 3.6 and install 3.11. I have created a virtual environment and activated it I relocated my app files to the new environment but when I was trying to run it I ran into this error

can't open file '/Users/Ren/fypvenv/streamlit': [Errno 2] No such file or directory

streamlit was reinstall using pip3 and it’s located in python3 file

1 Like

Hey @Ren :wave:

Did you check that your virtual environment is active by using source /path/to/venv/bin/activate? And did you check that Streamlit is correctly installed within this environment through pip list?

Best,
Charly

1 Like

the problem was solved by using the path to run the file
the environment is already activated and Streamlit is installed there

1 Like

Glad it got fixed! :hugs:

Best,
Charly

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