PyPI Installation¶
Install qBitrr directly from PyPI using pip. This method is ideal for users who prefer native installations or are already using Python for other tools.
Prerequisites¶
- Python 3.11 or higher (Download Python)
- pip (included with Python 3.4+)
- qBittorrent running and accessible
- At least one Arr instance (Radarr, Sonarr, or Lidarr)
Quick Start¶
Installation¶
Check Python Version¶
Make sure you have Python 3.11 or higher.
Install qBitrr¶
Why qBitrr2?
The package is named qBitrr2 on PyPI (the original qBitrr was taken), but the command is still qbitrr.
Install with Optional Dependencies¶
For faster JSON parsing:
For development dependencies:
For all optional dependencies:
First Run¶
-
Start qBitrr:
-
Configuration file created: qBitrr will generate
~/config/config.tomlon first run -
Stop qBitrr: Press Ctrl+C
-
Edit the configuration:
Or open with your preferred editor.
- Start qBitrr again:
See the First Run Guide for detailed configuration steps.
Configuration¶
Config File Location¶
By default, qBitrr stores configuration in:
Custom Config Path¶
Set a custom config directory:
Or on Windows:
Running as a Service¶
Linux (systemd)¶
See the Systemd Service Guide for running qBitrr as a system service.
Windows¶
Use Task Scheduler to run qBitrr at startup:
- Open Task Scheduler
- Create Basic Task
- Trigger: "When the computer starts"
- Action: Start a program
- Program:
C:\Python311\Scripts\qbitrr.exe - Finish
Or use NSSM (Non-Sucking Service Manager):
# Install NSSM
choco install nssm
# Create service
nssm install qBitrr "C:\Python311\Scripts\qbitrr.exe"
nssm start qBitrr
macOS¶
Create a LaunchAgent:
- Create
~/Library/LaunchAgents/com.qbitrr.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.qbitrr</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/qbitrr</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>StandardOutPath</key>
<string>/tmp/qbitrr.log</string>
<key>StandardErrorPath</key>
<string>/tmp/qbitrr.error.log</string>
</dict>
</plist>
- Load the service:
Updating¶
Upgrade to Latest Version¶
Upgrade with Auto-Update¶
qBitrr has a built-in auto-update feature:
-
Enable in
config.toml: -
qBitrr will automatically update itself from PyPI
Uninstalling¶
Your configuration files in ~/config/ will remain.
Troubleshooting¶
Command Not Found¶
If qbitrr command is not found after installation:
Permission Denied¶
On Linux/macOS, if you get permission errors:
Python Version Too Old¶
If your system Python is too old:
# Install a newer Python version
sudo apt install python3.12 # Ubuntu/Debian
brew install python@3.12 # macOS
# Use specific version
python3.12 -m pip install qBitrr2
python3.12 -m qBitrr.main
Virtual Environment Issues¶
If you have problems with system Python:
# Create fresh venv
python3 -m venv --clear qbitrr-env
# Activate and install
source qbitrr-env/bin/activate
pip install --upgrade pip
pip install qBitrr2
Import Errors¶
If you get import errors on startup:
Development Installation¶
To install from source for development:
# Clone repository
git clone https://github.com/Feramance/qBitrr.git
cd qBitrr
# Create virtual environment
python3 -m venv .venv
source .venv/bin/activate
# Install in development mode
pip install -e .[all]
# Run from source
python -m qBitrr.main
See the Development Guide for more details.
Advantages & Disadvantages¶
✅ Advantages¶
- Native performance (no containerization overhead)
- Easy integration with other Python tools
- Direct access to logs and config files
- Simple updates via pip
- Works on any platform with Python
❌ Disadvantages¶
- Requires Python 3.11+ installed
- Manual dependency management
- No built-in process management (need systemd/Task Scheduler)
- Path issues on some systems
- More complex multi-user setups