Currently, there is no official Debian or Ubuntu package for Paperwork.
$ sudo apt install python3-pip python3-setuptools
$ sudo apt install python3-dev python3-pil
# PyEnchant dependency
$ sudo apt install libenchant-dev
(this is the recommended method by default)
You can then install paperwork using pip:
$ sudo pip3 install paperwork
Some dependencies cannot be installed automatically, because they depend on your language. You can find all the required dependencies not yet installed by running 'paperwork-chkdeps'
$ paperwork-shell chkdeps paperwork_backend
$ paperwork-shell chkdeps paperwork
If you're reluctant to install system wide python libraries through pip, you can also use debian packages generated on the fly by python-stdeb
However, Debian doesn't provide yet the command pypi-install
for Python 3.
Therefore it has fiest to be installed .. manually.
$ sudo apt install python3-all-dev python3-pip
$ sudo pip3 install stdeb
Then you can generate and install the packages for Paperwork libraires:
$ sudo /usr/local/bin/pypi-install pyocr
$ sudo /usr/local/bin/pypi-install pyinsane2
$ sudo /usr/local/bin/pypi-install pypillowfight
And then you can generate and install the packages for Paperwork itself:
$ sudo /usr/local/bin/pypi-install paperwork-backend
$ sudo /usr/local/bin/pypi-install paperwork
Finally, you have to run the following commands to check some extra dependencies:
$ paperwork-shell chkdeps paperwork_backend
$ paperwork-shell chkdeps paperwork
A shortcut should be available in the menus of your window manager (you may have to log out first).
You can also start Paperwork by running the command 'paperwork'.
Enjoy :-)