Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Commit 7926bae

Browse files
authored
Added PyPi installation instructions
1 parent a738f4a commit 7926bae

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,31 @@ This is easily achieved by downloading
2929
**NOTE:** This library is not supported for smaller non-Express boards like
3030
the Trinket M0, Gemma M0, etc.
3131

32+
Installing from PyPI
33+
====================
34+
35+
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
36+
PyPI <https://pypi.org/project/adafruit-circuitpython-thermal_printer/>`_. To install for current user:
37+
38+
.. code-block:: shell
39+
40+
pip3 install adafruit-circuitpython-thermal_printer
41+
42+
To install system-wide (this may be required in some cases):
43+
44+
.. code-block:: shell
45+
46+
sudo pip3 install adafruit-circuitpython-thermal_printer
47+
48+
To install in a virtual environment in your current project:
49+
50+
.. code-block:: shell
51+
52+
mkdir project-name && cd project-name
53+
python3 -m venv .env
54+
source .env/bin/activate
55+
pip3 install adafruit-circuitpython-thermal_printer
56+
3257
Usage Example
3358
=============
3459

0 commit comments

Comments
 (0)