File tree Expand file tree Collapse file tree 2 files changed +26
-15
lines changed
Expand file tree Collapse file tree 2 files changed +26
-15
lines changed Original file line number Diff line number Diff line change @@ -50,16 +50,18 @@ colour LEDs, robotics kits and more.
5050Install
5151=======
5252
53- First, install the dependencies ::
53+ First, update your repositories list ::
5454
55- sudo apt-get install python-pip python3-pip python-spidev python3-spidev
55+ sudo apt-get update
5656
57- Install with pip::
57+ Then install the package of your choice. Both Python 3 and Python 2 are
58+ supported. Python 3 is recommended::
5859
59- sudo pip install gpiozero
60- sudo pip-3.2 install gpiozero
60+ sudo apt-get install python3-gpiozero
6161
62- Both Python 3 and Python 2 are supported. Python 3 is recommended!
62+ or::
63+
64+ sudo apt-get install python-gpiozero
6365
6466Documentation
6567=============
Original file line number Diff line number Diff line change @@ -50,28 +50,37 @@ colour LEDs, robotics kits and more.
5050
5151## Install
5252
53- First, install the dependencies :
53+ First, update your repositories list :
5454
5555``` python
56- sudo apt- get install python - pip python3 - pip python - spidev python3 - spidev
56+ sudo apt- get update
5757```
5858
59- Install with pip:
59+ Then install the package of your choice. Both Python 3 and Python 2 are
60+ supported. Python 3 is recommended!
6061
61- ``` bash
62- sudo pip install gpiozero
63- sudo pip-3.2 install gpiozero
62+ ``` python
63+ sudo apt- get install python3- gpiozero
6464```
6565
66- Both Python 3 and Python 2 are supported. Python 3 is recommended!
66+ or:
67+
68+ ``` python
69+ sudo apt- get install python- gpiozero
70+ ```
6771
6872### Upgrade
6973
7074Upgrade to the latest version with:
7175
7276``` bash
73- sudo pip install gpiozero --upgrade
74- sudo pip-3.2 install gpiozero --upgrade
77+ sudo apt-get upgrade python3-gpiozero
78+ ```
79+
80+ or:
81+
82+ ``` bash
83+ sudo apt-get upgrade python-gpiozero
7584```
7685
7786## Getting started
You can’t perform that action at this time.
0 commit comments