File tree 1 file changed +27
-2
lines changed
1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ Introduction
16
16
17
17
A CircuitPython driver for the Sensirion SGP30 gas sensor with eCO2 and TVOC output. This sensor uses I2C!
18
18
19
- Dependencies
20
- =============
19
+ Installation and Dependencies
20
+ =============================
21
21
This driver depends on:
22
22
23
23
* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython >`_
@@ -27,6 +27,31 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
27
27
This is easily achieved by downloading
28
28
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle >`_.
29
29
30
+ Installing from PyPI
31
+ --------------------
32
+
33
+ On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
34
+ PyPI <https://pypi.org/project/adafruit-circuitpython-sgp30/> `_. To install for current user:
35
+
36
+ .. code-block :: shell
37
+
38
+ pip3 install adafruit-circuitpython-sgp30
39
+
40
+ To install system-wide (this may be required in some cases):
41
+
42
+ .. code-block :: shell
43
+
44
+ sudo pip3 install adafruit-circuitpython-sgp30
45
+
46
+ To install in a virtual environment in your current project:
47
+
48
+ .. code-block :: shell
49
+
50
+ mkdir project-name && cd project-name
51
+ python3 -m venv .env
52
+ source .env/bin/activate
53
+ pip3 install adafruit-circuitpython-sgp30
54
+
30
55
Usage Notes
31
56
=============
32
57
You can’t perform that action at this time.
0 commit comments