O'Reilly logo

Internet of Things with Python by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Invoking the Python interpreter

We have installed the most updated versions of the most important libraries we required to interact with the features included in the Intel Galileo Gen 2 board. Now, we can invoke the Python interpreter by typing the classic command:

python

Now, enter the following two lines of Python code:

import mraa
mraa.getVersion()

The Python interpreter will display the following output:

'v0.9.0'

We imported the mraa library and called the mraa.getVersion method to check whether Python is able to retrieve the installed version of the mraa library. The result of calling the method displays the version we installed for the mraa library, and therefore, we know that Python is going to work with the version we expect. Note that the Python ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required