Formatting fixes

This commit is contained in:
Ben Nuttall
2017-03-11 01:15:24 +00:00
parent d846d5b2bd
commit ad6b85a3d8
4 changed files with 11 additions and 13 deletions

View File

@@ -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/