- First install streamlit and virtualenv so that it can be used to run python and set up a virtual environment for dependencies
pip install streamlit pip install virtualenv
- Setup your virtual environment. The terminal and folder should reflect the virtual environment created, in this case it is venv.
virtualenv venv
- Activate your virtual environment
source venv/bin/activate
- Install dependencies
pip freeze > requirements.txt pip install -r requirements.txt pip install python-dotenv