Complete PC/Mac installation instructions and move to remote gpio setup page

This commit is contained in:
Ben Nuttall
2017-07-16 12:01:45 +01:00
parent e4038c5ad9
commit 6115c78730
2 changed files with 33 additions and 83 deletions

View File

@@ -27,80 +27,31 @@ or Python 2:
pi@raspberrypi:~$ sudo apt install python-gpiozero
Linux
=====
First, update your distribution's repositories list. For example:
If you're using another operating system on your Raspberry Pi, you may need to
use pip to install GPIO Zero instead. Install pip using `get-pip`_ and then
type:
.. code-block:: console
$ sudo apt update
pi@raspberrypi:~$ sudo pip3 install gpiozero
Then install pip for Python 3:
or for Python 2:
.. code-block:: console
$ sudo apt install python3-pip
pi@raspberrypi:~$ sudo pip install gpiozero
or Python 3:
To install GPIO Zero in a virtual environment, see the :doc:`development` page.
.. code-block:: console
$ sudo apt install python-pip
(Alternatively, install pip with `get-pip`_.)
Next, install gpiozero for Python 3:
.. code-block:: console
$ sudo pip3 install gpiozero
or Python 2:
.. code-block:: console
$ sudo pip install gpiozero
.. note::
We welcome Linux distribution maintainers to include the gpiozero packages
in their repositories. Any questions you have, please ask questions on
`GitHub`_ and we'll be happy to help.
Mac OS
PC/Mac
======
First, install pip:
.. code-block:: console
$ ???
Next, install gpiozero with pip:
.. code-block:: console
$ pip install gpiozero
Windows
=======
First, install pip:
.. code-block:: doscon
C:\Users\user1> ???
Next, install gpiozero with pip:
.. code-block:: doscon
C:\Users\user1> pip install gpiozero
In order to use GPIO Zero's remote GPIO feature from a PC or Mac, you'll need
to install GPIO Zero on that computer using pip. See the :doc:`remote_gpio`
page for more information.
.. _Raspbian Jessie: https://www.raspberrypi.org/downloads/raspbian/
.. _PIXEL x86: https://www.raspberrypi.org/blog/pixel-pc-mac/
.. _raspberrypi.org: https://www.raspberrypi.org/downloads/
.. _get-pip: https://pip.pypa.io/en/stable/installing/
.. _GitHub: https://github.com/RPi-Distro/python-gpiozero/issues