Installation on Windows
Timo edited this page Jul 2, 2022
·
4 revisions
Disclaimer: I copied most of this tutorial from Bazarr. So all credits for this guide go to the creator/developer of Bazarr.
- Install GIT.
- Install Python 3.6 or greater (latest is good) from this link and make sure to check the box to have Python directory added to the system path variable.
- Open up CMD and go to the folder you want to install addarr. Do not use
C:\Program Files
orC:\Program Files (x86)
as you could run into strange issues. Something likeC:\addarr
is a better choice. - Run
git clone https://github.com/Waterboy1602/Addarr.git
. - Go to addarr folder
cd addarr
. - Install Python requirements using
pip install -r requirements.txt
. - You can now start addarr via
python addarr.py
.
- Download the latest NSSM from https://nssm.cc/download. It is recommended to grab the prerelease due to a slight issue with the Windows 10 Creators Update.
- Either place the downloaded NSSM binary in
C:\Windows\System32
, or add it to your PATH. This is to allow you to use NSSM from any location. - Run
cmd
as an Administrator and use the commandnssm install addarr
- A GUI should pop up. Use the following configuration
- Path: Should be the location to your Python 3.8 executable. Example:
C:\Python38\python.exe
- Startup Directory: Should be the location of your Python38 folder. Example:
C:\Python38
- Arguments: Should be the location of your addarr.py file. Example:
C:\addarr\src\addarr.py
- Please note that running Addarr from the
Program Files
orProgram Files (x86)
directories may cause issues.
- Please note that running Addarr from the
- Path: Should be the location to your Python 3.8 executable. Example:
- Under
Process Tab
, make sure to uncheckConsole Windows
. - Click the
Install Service
button - Use the command
nssm start addarr
to initiate addarr. It should autostart going forward.
nssm edit addarr
will open up the GUI for further edits.
nssm restart addarr
will restart addarr.
nssm stop addarr
will stop addarr.
nssm remove addarr
will remove the Windows Service.
- Note that this guide will work in essence for any Python script, and you can use NSSM to run most things as Windows Services through some tweaking of this overall config.