Skip to content

Commit eed9159

Browse files
committed
Clarify manual install
1 parent 558fbab commit eed9159

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,31 @@ Adafruit Python GPIO Library
44
Library to provide a cross-platform GPIO interface on the Raspberry Pi and Beaglebone Black using the [RPi.GPIO](https://pypi.python.org/pypi/RPi.GPIO) and [Adafruit_BBIO](https://pypi.python.org/pypi/Adafruit_BBIO) libraries.
55

66
The library is currently in an early stage, but you can see how its used in the [Adafruit Nokia LCD library](https://github.com/adafruit/Adafruit_Nokia_LCD) to write Python code that is easily portable between the Raspberry Pi and Beaglebone Black.
7+
8+
Note that you typically don't need to install this library directly as other libraries will depend on it in their setup and automatically install it. However if you do need to manually install do so by running these commands:
9+
10+
- On a Debian-based Linux like Raspbian, Ubuntu, etc. in a terminal execute:
11+
12+
```
13+
sudo apt-get update
14+
sudo apt-get install build-essential python-pip python-dev python-smbus git
15+
git clone https://github.com/adafruit/Adafruit_Python_GPIO.git
16+
cd Adafruit_Python_GPIO
17+
sudo python setup.py install
18+
```
19+
20+
- On Mac OSX, first install PIP by [downloading the python script here](https://bootstrap.pypa.io/get-pip.py) and execute it with `python get-pip.py` in a terminal, then install the [git source control system](http://git-scm.com/downloads). Then in a terminal execute:
21+
22+
```
23+
git clone https://github.com/adafruit/Adafruit_Python_GPIO.git
24+
cd Adafruit_Python_GPIO
25+
sudo python setup.py install
26+
```
27+
28+
- On Windows, first install the [latest Python 2.7 version](https://www.python.org/downloads/windows/), then install PIP by [downloading the python script here](https://bootstrap.pypa.io/get-pip.py) and execute it with `python get-pip.py` in a terminal, and finally install the [git source control system](http://git-scm.com/downloads). Then in a git bash prompt execute:
29+
30+
```
31+
git clone https://github.com/adafruit/Adafruit_Python_GPIO.git
32+
cd Adafruit_Python_GPIO
33+
python setup.py install
34+
```

0 commit comments

Comments
 (0)