Skip to content

Commit df4c0d4

Browse files
committed
Document how to install Pillow from a directory
1 parent f276316 commit df4c0d4

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

docs/installation.rst

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ Pillow can be installed on FreeBSD via the official Ports or Packages systems:
103103
Building From Source
104104
--------------------
105105

106-
Download and extract the `compressed archive from PyPI`_.
107-
108-
.. _compressed archive from PyPI: https://pypi.org/project/Pillow/
109-
110106
.. _external-libraries:
111107

112108
External Libraries
@@ -191,7 +187,8 @@ Many of Pillow's features require external libraries:
191187

192188
* **libxcb** provides X11 screengrab support.
193189

194-
Once you have installed the prerequisites, run::
190+
Once you have installed the prerequisites, to install Pillow from the source
191+
code on PyPI, run::
195192

196193
python3 -m pip install --upgrade pip
197194
python3 -m pip install --upgrade Pillow --no-binary :all:
@@ -211,6 +208,16 @@ prerequisites, it may be necessary to manually clear the pip cache or
211208
build without cache using the ``--no-cache-dir`` option to force a
212209
build with newly installed external libraries.
213210

211+
If you would like to install from a local copy of the source code instead, you
212+
can download and extract the `compressed archive from PyPI`_, or clone from
213+
GitHub with ``git clone https://github.com/python-pillow/Pillow``.
214+
215+
After navigating to the Pillow directory, run::
216+
217+
python3 -m pip install --upgrade pip
218+
python3 -m pip install .
219+
220+
.. _compressed archive from PyPI: https://pypi.org/project/Pillow/
214221

215222
Build Options
216223
^^^^^^^^^^^^^

0 commit comments

Comments
 (0)