Installation ‐ Python - babsonnexus/stream-link-manager-for-channels GitHub Wiki

Using Python directly is not recommended, however it is available as an option. As this is highly technical, only limited support is provided. It is expected that you are fairly familiar with Python and have pip installed.

  1. Download the slm_python.zip file and place it in the final destination folder.

  2. Navigate to that directory and extract the contents. Make sure you have not created another subdirectory. When complete, remove the slm_python.zip. It should now look something like this:

image

  1. Open a command prompt and navigate to the folder that you created. Type in the following command:
pip install -r requirements.txt
  1. OPTIONAL: It is possible to generate an executable from the Python file directly. The only caveat is that in order to make one that works for that system type (say MacOS) your actions have to be run on that type of system. That means if you want to create an executable for an unsupported system type, you can do so with the following command:
pyinstaller --noconfirm --onedir --console --add-data "requirements.txt;." --add-data "static;static/" --add-data "templates;templates/" --collect-submodules "streamlink" "slm.py"

Or...

pyinstaller --noconfirm --onedir --console --add-data="requirements.txt:." --add-data="static:static/" --add-data="templates:templates/" --collect-submodules="streamlink" "slm.py"
  1. You will end up with some additional folders and files:

image

  • You are free to remove build and slm.spec.
  • dist contains the entire executable program. You can leave it in its current location, rename it, and/or move it somewhere else.
  • With that, you no longer need the original content that was unzipped and you can delete it if you want.
  1. OPTIONAL: You can change the port for Streaming Library Manager by creating a permanent Environment Variable called SLM_PORT (case sensitive) and giving it a value of the port you want to use. If you don't, the program will run on port 5000. You may also need to open the port up to bypass firewalls or other such settings.