Skip to content

Commit bdf26c3

Browse files
authored
Merge pull request #20 from adafruit/pypi-readme
added pypi instructions to readme
2 parents 4421e79 + 222c9e0 commit bdf26c3

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.rst

+25
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,31 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
3131
This is easily achieved by downloading
3232
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
3333

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

0 commit comments

Comments
 (0)