hydrus/help/running_from_source_linux_p...

80 lines
3.8 KiB
Plaintext
Raw Normal View History

2019-07-17 22:10:19 +00:00
Why use distro packages instead of pip?
2019-07-24 21:39:02 +00:00
=======================================
* Packages integrate well with the system
* Packages can be installed/updated/removed with the package manager which users probably already know how to use
* No need to learn/use pip and venv, no need to compile anything
2019-11-14 03:56:30 +00:00
The following lists should work for any recent release of the named distros and derivatives. However, for some modules, some distros might ship versions
that are too old. These should be installed through pip until the distro adds/updates the package.
2019-07-24 21:39:02 +00:00
2019-07-17 22:10:19 +00:00
Arch Linux, Manjaro
===================
Install from the AUR: https://aur.archlinux.org/packages/hydrus/
2019-07-24 21:39:02 +00:00
(This is what I use personally and it works great - it's basically just a script which installs dependencies, clones the source from the official repo and puts it in the right place.)
Even if not installing from the AUR, the above link has a full and up-to-date list of the required package dependencies.
2019-11-14 03:56:30 +00:00
Note that you can use PyQt5 instead of PySide2 (however PySide2 is recommended). If you choose to use PyQt5, you don't need PySide2 or shiboken2 but have to install python-pyqt5 and python-sip-pyqt5.
2019-07-24 21:39:02 +00:00
Ubuntu, Debian, Linux Mint
==========================
Required:
python3-chardet python3-html5lib python3-bs4 python3-lxml
python3-nose python3-numpy python3-opencv python3-six python3-pil
python3-psutil python3-openssl python3-yaml python3-requests
python3-send2trash python3-service-identity python3-twisted
2019-11-14 03:56:30 +00:00
ffmpeg python3-pyside2.qtwidgets python3-pyside2.qtcore python3-pyside2.qtgui
You also need python3-qtpy, but the version shipped by these distros (as of this writing) is too old. At least version 1.8 is required. Until the distros catch up, it is recommended that you install
this module with pip instead of the package manager.
You might need to install the shiboken2 module from pip since it looks like it is not currently packaged.
Instead of PySide2 (the python3-pyside2.* packages above and shiboken2), you can also use PyQt5 (python3-pyqt5, python3-sip), though PySide2 is recommended.
2019-07-24 21:39:02 +00:00
Optional:
python3-lz4 python3-pysocks python3-matplotlib python3-mock python3-httmock
pylzma doesn't seem to be packaged, but it is not essential.
Package search: https://packages.debian.org/, https://packages.ubuntu.com/
2019-07-17 22:10:19 +00:00
Fedora
======
2019-07-24 21:39:02 +00:00
2019-07-17 22:10:19 +00:00
Required packages:
python3-beautifulsoup4 python3-chardet
python3-html5lib python3-lxml python3-nose
python3-numpy python3-opencv python3-six python3-pillow python3-psutil
python3-pyOpenSSL python3-pyyaml python3-requests
python3-send2trash python3-service-identity
2019-11-14 03:56:30 +00:00
python3-twisted
python3-qtpy (1.8 or newer)
python3-pyside2
python3-shiboken2
Instead of PySide2 (python3-pyside2, python3-shiboken2) you can also use PyQt5 (python3-sip, python3-qt5).
2019-07-24 21:39:02 +00:00
2019-07-17 22:10:19 +00:00
The optional stuff:
2019-11-14 03:56:30 +00:00
python3-lz4 python3-pysocks python3-matplotlib python3-matplotlib-qt5 python3-httmock
2019-07-24 21:39:02 +00:00
2019-07-17 22:10:19 +00:00
mock and pylzma doesn't seem to be packaged, and ffmpeg isn't in the base Fedora repo (due to licensing/patents scare?),
2019-07-24 21:39:02 +00:00
but can be installed from the rpmfusion repo (https://rpmfusion.org/). From these, only ffmpeg is necessary for normal users.
Package search: https://apps.fedoraproject.org/packages/
2019-07-17 22:10:19 +00:00
openSuse
========
2019-07-24 21:39:02 +00:00
2019-07-17 22:10:19 +00:00
Required:
python3-beautifulsoup4 python3-chardet python3-html5lib python3-lxml
python3-nose python3-numpy python3-opencv python3-six
python3-Pillow python3-psutil python3-pyOpenSSL
python3-PyYAML python3-requests python3-Send2Trash
python3-service_identity python3-Twisted
2019-11-14 03:56:30 +00:00
ffmpeg-4
python3-pyside2
You might need to install the shiboken2 module from pip since it looks like it is not currently packaged.
Instead of PySide2 (python3-pyside2 and the shiboken2 module) you can also use PyQt5 (python3-sip, python3-qt5).
2019-07-24 21:39:02 +00:00
2019-07-17 22:10:19 +00:00
Optional:
2019-11-14 03:56:30 +00:00
python3-lz4 python3-pylzma python3-PySocks python3-matplotlib python3-matplotlib-qt5
2019-07-17 22:10:19 +00:00
python3-mock python3-httmock
2019-07-24 21:39:02 +00:00
Package search: https://software.opensuse.org/search