Page 1 of 1

HOWTO: Ubuntu 22.04 with Python 3.11 for better SABnzbd performance

Posted: May 28th, 2023, 6:27 am
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