Skip to content

Commit 1fce0dc

Browse files
committed
account_invoice_import_simple_pdf: update INSTALL.rst about version of dateparser and regex
1 parent 34eae30 commit 1fce0dc

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

account_invoice_import_simple_pdf/readme/INSTALL.rst

+6-12
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Install it via pip:
1818

1919
.. code::
2020
21-
sudo pip3 install --upgrade pymupdf
21+
pip3 install --upgrade pymupdf
2222
2323
Beware that *PyMuPDF* is not a pure-python library: it uses MuPDF, which is written in C language. If a python wheel for your OS, CPU architecture and Python version is available on pypi (check the `list of PyMuPDF wheels <https://pypi.org/project/PyMuPDF/#files>`_ on pypi), it will install smoothly. Otherwize, the installation via pip will require MuPDF and all its development libs to compile the binding.
2424

@@ -35,7 +35,7 @@ and then install the lib via pip:
3535

3636
.. code::
3737
38-
sudo pip3 install --upgrade pdftotext
38+
pip3 install --upgrade pdftotext
3939
4040
On OSes other than Debian/Ubuntu, follow the instructions on the `project page <https://github.com/jalan/pdftotext>`_.
4141

@@ -55,7 +55,7 @@ To install the **pypdf** python lib, run:
5555

5656
.. code::
5757
58-
sudo pip3 install --upgrade pypdf
58+
pip3 install --upgrade pypdf
5959
6060
6161
Other requirements
@@ -70,17 +70,11 @@ The dateparser lib depends itself on regex. So you can install these Python libr
7070

7171
.. code::
7272
73-
sudo pip3 install --upgrade dateparser
73+
pip3 install --upgrade dateparser
7474
75-
The dateparser lib is not compatible with all regex lib versions. As of September 2022, the `version requirement <https://github.com/scrapinghub/dateparser/blob/master/setup.py#L30>`_ declared by dateparser for regex is **!=2019.02.19, !=2021.8.27, <2022.3.15**. So the latest version of regex which is compatible with dateparser is **2022.3.2**. To know the version of regex installed in your environment, run:
75+
The dateparser lib is not compatible with all regex lib versions. As of February 2024, the `version requirement <https://github.com/scrapinghub/dateparser/blob/master/setup.py#L36>`_ declared by dateparser for regex is **!=2019.02.19, !=2021.8.27**. So the latest version of dateparser is currenly compatible with the latest version of regex. To know the version of regex installed in your environment, run:
7676

7777

7878
.. code::
7979
80-
sudo pip3 show regex
81-
82-
To force regex to version 2022.3.2, run:
83-
84-
.. code::
85-
86-
sudo pip3 install regex==2022.3.2
80+
pip3 show regex

0 commit comments

Comments
 (0)