WiringPi

SANKI Easy Install
Install WiringPi for Python

$ sudo apt-get install python-dev python-imaging python-imaging-tk python-pip
$ sudo pip install wiringpi wiringpi2
 

Check 
sudo python
import wiringpi2
wiringpi2.piBoardRev()

Test Python 
sudo python
import wiringpi as wiringpi
wiringpi.wiringPiSetupGpio()  
wiringpi.pinMode(24,1)        <----- Set GPIO 24 Output
wiringpi.digitalWrite(24, 1)  <----- Set 24 to 1 -- Output 3.3V

WiringPi

WiringPi is a very useful library for python on raspberry pi


Other Language : https://github.com/WiringPi 

Example : 

Raspberry Pi - SANKI recommended for C and Terminal 

Install library


$ sudo apt-get install zlibc libpng3 libfreetype6 libfreetype6-dev python-pip
$ sudo pip install pillow

wiringPi Install

Error Message


    Traceback (most recent call last):
      File "showip.py", line 1, in 
        import pcd8544.lcd as lcd
      File "/usr/local/lib/python2.7/dist-packages/pcd8544/lcd.py", line 4, in 
        import wiringPy
    ImportError: No module named wiringPy

1.Inatall

 sudo apt-get install python-dev libi2c-dev

2.Clone

 git clone https://github.com/rm-hull/wiringPi

3.Build


    $ cd ~/wiringPi
    $ ./build clean 
    $ ./build

Check $ gpio -v $ gpio readall