mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-19 10:19:27 -05:00
Merge branch 'master' into feature/images-as-docs
This commit is contained in:
commit
9ed8a2b2d7
@ -16,14 +16,58 @@ should work) that has the following software installed on it:
|
|||||||
.. _Tesseract: https://github.com/tesseract-ocr
|
.. _Tesseract: https://github.com/tesseract-ocr
|
||||||
.. _Imagemagick: http://imagemagick.org/
|
.. _Imagemagick: http://imagemagick.org/
|
||||||
|
|
||||||
If you're not working on a virtual environment (like Vagrant or Docker), you
|
Notably, you should confirm how you access your Python3 installation. Many
|
||||||
should probably be using a virtualenv, but that's your call. The reasons why
|
Linux distributions will install Python3 in parallel to Python2, using the names
|
||||||
you might choose a virtualenv or not aren't really within the sope of this
|
``python3`` and ``python`` respectively. The same goes for ``pip3`` and
|
||||||
document.
|
``pip``. Using Python2 will likely break things, so make sure that you're using
|
||||||
|
the right version.
|
||||||
|
|
||||||
|
For the purposes of simplicity, ``python`` and ``pip`` is used everywhere to
|
||||||
|
refer to their Python 3 versions.
|
||||||
|
|
||||||
In addition to the above, there are a number of Python requirements, all of
|
In addition to the above, there are a number of Python requirements, all of
|
||||||
which are listed in ``requirements.txt``. They will be installed automatically
|
which are listed in a file called ``requirements.txt`` in the project root.
|
||||||
with ``pip`` as part of the installation process.
|
|
||||||
|
If you're not working on a virtual environment (like Vagrant or Docker), you
|
||||||
|
should probably be using a virtualenv, but that's your call. The reasons why
|
||||||
|
you might choose a virtualenv or not aren't really within the scope of this
|
||||||
|
document. Needless to say if you don't know what a virtualenv is, you should
|
||||||
|
probably figure that out before continuing.
|
||||||
|
|
||||||
|
|
||||||
|
.. _requirements-baremetal:
|
||||||
|
|
||||||
|
Python-specific Requirements: No Virtualenv
|
||||||
|
-------------------------------------------
|
||||||
|
|
||||||
|
If you don't care to use a virtual env, then installation of the Python
|
||||||
|
dependencies is easy:
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
$ pip install --user --requirement /path/to/paperless/requirements.txt
|
||||||
|
|
||||||
|
This should download and install all of the requirements into
|
||||||
|
``${HOME}/.local``. Remember that your distribution may be using ``pip3`` as
|
||||||
|
mentioned above.
|
||||||
|
|
||||||
|
|
||||||
|
.. _requirements-virtualenv:
|
||||||
|
|
||||||
|
Python-specific Requirements: Virtualenv
|
||||||
|
----------------------------------------
|
||||||
|
|
||||||
|
Using a virtualenv for this is pretty straightforward: create a virtualenv,
|
||||||
|
enter it, and install the requirements using the ``requirements.txt`` file:
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
$ virtualenv --python=/path/to/python3 /path/to/arbitrary/directory
|
||||||
|
$ . /path/to/arbitrary/directory/bin/activate
|
||||||
|
$ pip install --requirement /path/to/paperless/requirements.txt
|
||||||
|
|
||||||
|
Now you're ready to go. Just remember to enter your virtualenv whenever you
|
||||||
|
want to use *Paperless*.
|
||||||
|
|
||||||
|
|
||||||
.. _requirements-documentation:
|
.. _requirements-documentation:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user