This project uses rembg to remove image backgrounds in Python.
- Windows 10/11
- Python 3.11 (not 3.13)
- pip (included with Python)
- Virtual environment (
venv)
- Download Python 3.11: Python 3.11.0 Windows Installer
- During installation:
- ✅ Check “Add Python to PATH”
- ✅ Include pip and venv
Open PowerShell in the project folder:
py -3.11 -m venv rembg-env
Activate the virtual environment:
.\rembg-env\Scripts\activate
3. Install Dependencies
Inside the activated venv:
pip install --upgrade pip
pip install rembg onnxruntime pillow
Run the Script
python test.py