- Windows OS
- Python 3.8+ (via Conda environment)
- Conda (Anaconda or Miniconda)
- Download or copy this project
my_app/
├── streamlit_app.py
├── requirements.txt
├── run_app.bat
└── data/ (if your app uses data files)
- Create the Conda environment (first-time setup)
Open Anaconda Prompt or terminal and run:
conda create -n my_env_name python=3.10
conda activate my_env_name
pip install -r requirements.txtReplace
my_env_namewith your preferred environment name.
- Check the batch file
Open run_app.bat in a text editor and make sure the path to your Conda installation is correct:
call C:\Users\YourUserName\miniconda3\Scripts\activate.bat
conda activate my_env_name
streamlit run streamlit_app.py
pause-
Double-click
run_app.bat. -
This will:
- Activate the Conda environment
- Run the Streamlit app
- Open the app in your default web browser
- The terminal window stays open to show errors.
- If you add new dependencies, run:
pip install -r requirements.txt- Ensure any data files your app uses are inside the project folder.