mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2026-04-25 08:23:53 +00:00
Complete PC/Mac installation instructions and move to remote gpio setup page
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user