HOWTO: Ubuntu 22.04 with Python 3.11 for better SABnzbd performance

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

HOWTO: Ubuntu 22.04 with Python 3.11 for better SABnzbd performance

Post by sander »

Python 3.11 gives better performance than python 3.10, which is nice for SABnzbd's performance.

Ubuntu 22.04 has python 3.10 as default, but python 3.11 is possible with venv / virtual environment ... see this HOWTO

Install python 3.11 including venv, create venv, and activate it:

Code: Select all

sudo apt install python3.11 python3.11-venv 
python3.11 -m venv ~/my-python3.11-venv
source ~/my-python3.11-venv/bin/activate
Check it's working:

Code: Select all

(my-python3.11-venv) sander@witte2004:~$ python3 -V
Python 3.11.3
(my-python3.11-venv) sander@witte2004:~$

All the below within the venv!

Install SABnzbd python3.11 modules:

Code: Select all

python3 -m pip install -r /home/sander/git/sabnzbd/requirements.txt
Start SABnzbd with python3.11:

Code: Select all

python3 ~/git/sabnzbd/SABnzbd.py -b1 -l2
Afterwards, leave the venv:

Code: Select all

deactivate
Post Reply