Skip to content

Manual install

Alexander Piskun edited this page Feb 14, 2022 · 11 revisions

To read about what package need for what go here.

Here we install all needed packages globally, remember that you can install only some of them, and then run auto install.

Ubuntu20+ / Debian10+:

  1. Install python dist utils:

    sudo apt install python3-distutils -y

  2. Install pip:

    sudo apt install python3-pip -y

  3. Upgrade pip:

    sudo -H python3 -m pip install --upgrade pip

  4. (Optional) Install dev packages for python. It need for compiling python modules that have no binary wheel distro's. We are working on this, so in future this step will be not needed. If this step is needed for you for x86/arm8(aarch64) CPU - please report it for us. Execute:

    sudo apt install build-essential python3-dev -y

  5. Install required modules:

    sudo -H python3 -m pip install numpy pillow

  6. Install optional modules:

    sudo -H python3 -m pip install scipy pywavelets

    If you use postgre database, then execute:

    sudo -H python3 -m pip install asn1crypto

    If you use mysql/mariadb, then execute:

    sudo -H python3 -m pip install pynacl cryptography

  7. (Optional) Install optional module pillow_heif:

    sudo -H python3 -m pip install pillow_heif

    If this step throws an error, try update pip(step2).

  8. (Optional) Install boost modules:

    sudo -H python3 -m pip install hexhamming

  9. Go to MediaDC install page, and press "Check" button, and start to use it!

Centos 8 / Fedora 34:

  1. Install Python:

    sudo dnf install python3 -y

  2. Upgrade pip to latest:

    sudo python3 -m pip install --upgrade pip setuptools

  3. (Optional) Install dev packages for python. It need for compiling python modules that have no binary wheel distro's. We are working on this, so in future this step will be not needed. If this step is needed for you for x86/arm8(aarch64) CPU - please report it for us. Execute:

    sudo dnf install gcc-c++ python3-devel -y

  4. Perform steps from Debian/Ubuntu from step 5 to end. That's all!

Install all python requirements globally with one command:

  1. Be sure to have pip version 20+ and python 3.6+(do steps 1-4 for Debian/Ubuntu from this page, or steps 1-3 for Centos/Fedora for this).

  2. Run:

    sudo -H python3 -m pip install -r "%path_to_mediadc%/lib/Service/python/requirements.txt"

    or

    sudo -H python3 -m pip install -r https://raw.githubusercontent.com/andrey18106/mediadc/main/lib/Service/python/requirements.txt