This guide will walk you through installing Python dependencies, creating a virtual environment, and running the project.
Before starting, ensure you have:
- Python 3.8+ (Download here)
- pip (comes with Python)
- virtualenv (optional but recommended)
Navigate to your project directory:
cd path/to/your/project
Create a virtual environment named venv:
bash
Copy
Edit
python -m venv venv
Activate the environment:
Windows:
bash
Copy
Edit
venv\Scripts\activate
macOS / Linux:
bash
Copy
Edit
source venv/bin/activate
When activated, (venv) will appear before your terminal prompt.
Install Required dependencies from requirements.txt
bash
Copy
Edit
pip install streamlit tensorflow numpy pillow
Optional: Save them to requirements.txt for easier installation later:
bash
Copy
Edit
pip freeze > requirements.txt
To install from requirements.txt:
bash
Copy
Edit
pip install -r requirements.txt
4️⃣ Verify Installation
Check installed packages:
bash
Copy
Edit
pip list
5️⃣ Run the Streamlit Application
If your main file is app.py, run:
bash
Copy
Edit
streamlit run app.py
6️⃣ Deactivate the Virtual Environment
When finished, deactivate the environment:
bash
Copy
Edit
deactivate
✅ Your setup is complete! You can now start developing and running your project.
yaml
Copy
Edit