mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Add apt install instructions
This commit is contained in:
14
README.rst
14
README.rst
@@ -50,16 +50,18 @@ colour LEDs, robotics kits and more.
|
|||||||
Install
|
Install
|
||||||
=======
|
=======
|
||||||
|
|
||||||
First, install the dependencies::
|
First, update your repositories list::
|
||||||
|
|
||||||
sudo apt-get install python-pip python3-pip python-spidev python3-spidev
|
sudo apt-get update
|
||||||
|
|
||||||
Install with pip::
|
Then install the package of your choice. Both Python 3 and Python 2 are
|
||||||
|
supported. Python 3 is recommended::
|
||||||
|
|
||||||
sudo pip install gpiozero
|
sudo apt-get install python3-gpiozero
|
||||||
sudo pip-3.2 install gpiozero
|
|
||||||
|
|
||||||
Both Python 3 and Python 2 are supported. Python 3 is recommended!
|
or::
|
||||||
|
|
||||||
|
sudo apt-get install python-gpiozero
|
||||||
|
|
||||||
Documentation
|
Documentation
|
||||||
=============
|
=============
|
||||||
|
|||||||
@@ -50,28 +50,37 @@ colour LEDs, robotics kits and more.
|
|||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
First, install the dependencies:
|
First, update your repositories list:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
sudo apt-get install python-pip python3-pip python-spidev python3-spidev
|
sudo apt-get update
|
||||||
```
|
```
|
||||||
|
|
||||||
Install with pip:
|
Then install the package of your choice. Both Python 3 and Python 2 are
|
||||||
|
supported. Python 3 is recommended!
|
||||||
|
|
||||||
```bash
|
```python
|
||||||
sudo pip install gpiozero
|
sudo apt-get install python3-gpiozero
|
||||||
sudo pip-3.2 install gpiozero
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Both Python 3 and Python 2 are supported. Python 3 is recommended!
|
or:
|
||||||
|
|
||||||
|
```python
|
||||||
|
sudo apt-get install python-gpiozero
|
||||||
|
```
|
||||||
|
|
||||||
### Upgrade
|
### Upgrade
|
||||||
|
|
||||||
Upgrade to the latest version with:
|
Upgrade to the latest version with:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo pip install gpiozero --upgrade
|
sudo apt-get upgrade python3-gpiozero
|
||||||
sudo pip-3.2 install gpiozero --upgrade
|
```
|
||||||
|
|
||||||
|
or:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo apt-get upgrade python-gpiozero
|
||||||
```
|
```
|
||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
|
|||||||
Reference in New Issue
Block a user