Skip to content

Commit 838cb14

Browse files
authored
Added PyPi installation instructions
1 parent 92e34c8 commit 838cb14

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 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
2929
This is easily achieved by downloading
3030
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
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-mcp9808/>`_. To install for current user:
37+
38+
.. code-block:: shell
39+
40+
pip3 install adafruit-circuitpython-mcp9808
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-mcp9808
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-mcp9808
56+
3257
Usage Notes
3358
===========
3459

0 commit comments

Comments
 (0)