Run on WSL2
Last updated: April 4, 2026
This page explains how to run BetterRecolor on WSL2.
The workflow is mostly the same as on Windows or macOS, but Python on Ubuntu and Debian-based distributions may block system-wide package installation because of PEP 668. The recommended approach is to create a project-local virtual environment with venv and install dependencies there.
Audience
This page is for users who:
- use WSL2
- want to run BetterRecolor inside WSL2
- are comfortable with basic Linux shell commands
WARNING
Run the commands below in a WSL2 terminal, not in PowerShell or Command Prompt.
Verified Environment
The following environment has been tested:
- Windows 11 Home 64-bit
- WSL2 with Ubuntu 24.04 LTS
- Python 3.12.2
Prerequisites
Install Python, pip, and venv in WSL2 before continuing.
Reference: Install Python, pip, and venv on WSL2 and create a virtual environment
Steps
1. Clone the Repository
git clone https://github.com/8MeTools/BetterRecolor.git2. Change into the Repository Directory
cd path/to/BetterRecolorReplace path/to/BetterRecolor with the actual path to your cloned repository.
3. Create a Virtual Environment
python3 -m venv .btrcThis creates a .btrc virtual environment inside the BetterRecolor directory.
To confirm that it was created, list hidden files:
ls -la4. Activate the Virtual Environment
source .btrc/bin/activateAfter activation, your shell prompt should include (.btrc).
(.btrc) user@hostname:~/path/to/BetterRecolor$5. Install Dependencies
Install dependencies while the virtual environment is active.
pip install -r requirements.txt6. Run BetterRecolor
python3 main.pyFollow the prompts to choose a language and confirm the color settings.
To skip the prompts and run in English, use:
python3 main.py --lang en --yes7. Deactivate the Virtual Environment
When you are done, deactivate the environment:
deactivateThe (.btrc) prefix should disappear from your prompt.
Running Again
For future runs, change into the repository, activate the virtual environment, and start BetterRecolor.
cd path/to/BetterRecolor
source .btrc/bin/activate
python3 main.pyNotes
On WSL2, avoid installing Python packages directly into the system Python environment. Keeping BetterRecolor dependencies inside .btrc makes the setup easier to reproduce and prevents conflicts with system-managed Python packages.