Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:c1_tinkering [2016/04/15 13:10] john1117 created |
en:c1_tinkering [2017/03/27 09:38] (current) brian.kim [Python example] |
||
---|---|---|---|
Line 55: | Line 55: | ||
**Prerequisites**: You must have //**python-dev**// and //**python-setuptools**// installed If you manually rebuild the bindings with swig-python wiringpi.i | **Prerequisites**: You must have //**python-dev**// and //**python-setuptools**// installed If you manually rebuild the bindings with swig-python wiringpi.i | ||
- | sudo apt-get install python-dev python-setuptools | + | sudo apt-get install python-dev python-setuptools swig3.0 |
| | ||
1. Get/setup WiringPi 2 for Python repository | 1. Get/setup WiringPi 2 for Python repository | ||
Line 67: | Line 67: | ||
2. Build & install | 2. Build & install | ||
- | sudo python setup.py install | + | swig3.0 -python -threads wiringpi.i |
+ | sudo python setup.py build install | ||
3. Get/Run the example source code | 3. Get/Run the example source code |