mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Formatting fixes
This commit is contained in:
@@ -78,9 +78,9 @@ version of gpiozero is available in your Python environment like so::
|
||||
|
||||
>>> from pkg_resources import require
|
||||
>>> require('gpiozero')
|
||||
[gpiozero 1.2.0 (/usr/local/lib/python2.7/dist-packages)]
|
||||
[gpiozero 1.3.2 (/usr/lib/python3/dist-packages)]
|
||||
>>> require('gpiozero')[0].version
|
||||
'1.2.0'
|
||||
'1.3.2'
|
||||
|
||||
If you have multiple versions installed (e.g. from ``pip`` and ``apt``) they
|
||||
will not show up in the list returned by the ``require`` method. However, the
|
||||
@@ -90,9 +90,9 @@ import.
|
||||
If you receive the error "No module named pkg_resources", you need to install
|
||||
the ``pip`` utility. This can be done with the following command in Raspbian::
|
||||
|
||||
$ sudo apt install python-pip
|
||||
sudo apt install python-pip
|
||||
|
||||
Alternatively, install pip with `get-pip`_.
|
||||
|
||||
|
||||
.. get_pip: https://pip.pypa.io/en/stable/installing/
|
||||
.. _get_pip: https://pip.pypa.io/en/stable/installing/
|
||||
|
||||
Reference in New Issue
Block a user