User manual
Ausgabe 07.12.2016 Copyright by Joy-IT 22
3
RPi - Explorer700
13.3 Install Python Library
Python Libraries for Raspbian (contain RPi.GPIO and spidev installaon packages. See: hps://
pypi.python.org/pypi/RPi.GPIO hps://pypi.python.org/pypi/spidev ) get it by apt-get commands.
Please take a note, your Raspberry Pi should be connected to the network when using the command
apt-get to install the library. Before the installaon, you can run the following command to update
your soware list.
1. Run the following command to install the package python-dev
2. Installing the RPi.GPIO package (GPIO interface funcons). Copy the installaon package
RPi.GPIO to your RPi board, and unzip it. Enter the unzipped le under the terminal, and run
the following command to install the library:
3. Run the following command to install the library smbus (I2C interface funcons)
4. Run the following command to install the library serial, which contains UART interface
funcons
5. Installing the library spidev (SPI funcons). Copy the installaon package spidev to your RPi
board, and unzip it. Enter the unzip le under the terminal, and run the following command to
install the library:
sudo python setup.py install
sudo apt-get install python-smbus
sudo python setup.py install
sudo apt-get install python-dev
sudo apt-get update
sudo apt-get install python-serial