Skip to content

Commit 50fe27e

Browse files
authored
Update README.md
update installation instructions to use python3
1 parent c25f27a commit 50fe27e

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,31 @@ Adafruit BBIO is an API to enable [GPIO](README.md#gpio-setup), [PWM](README.md#
1313

1414
* New versions of Adafruit_BBIO may break backwards compatibility. Please read the [changelog](CHANGELOG.md).
1515

16+
* It is recommended to use Python 3
17+
1618
## Installation on Debian
1719

18-
Easiest:
20+
Note: Follow the instructions on BeagleBoard.org to [get connected to the Internet](https://beagleboard.org/upgrade#connect)
21+
22+
**Easiest:**
1923
```
20-
sudo ntpdate pool.ntp.org
2124
sudo apt-get update
22-
sudo apt-get install build-essential python-dev python-pip -y
23-
sudo pip install Adafruit_BBIO
25+
sudo apt-get install build-essential python3-dev python3-pip -y
26+
sudo pip3 install Adafruit_BBIO
2427
```
2528

26-
Manual:
29+
**Manual:**
2730
```
28-
sudo ntpdate pool.ntp.org
2931
sudo apt-get update
30-
sudo apt-get install build-essential python-dev python-pip -y
32+
sudo apt-get install build-essential python3-dev python3-pip -y
3133
git clone git://github.com/adafruit/adafruit-beaglebone-io-python.git
3234
cd adafruit-beaglebone-io-python
33-
sudo python setup.py install
35+
sudo python3 setup.py install
3436
```
3537

3638
Upgrade Adafruit_BBIO to latest version on [PyPI](https://pypi.python.org/pypi/Adafruit_BBIO):
3739
```
38-
sudo pip install --upgrade Adafruit_BBIO
40+
sudo pip3 install --upgrade Adafruit_BBIO
3941
```
4042

4143
## Usage
@@ -264,13 +266,13 @@ To use the enhanced Quadrature Encoder Pulse (eQEP) module, please refer to the
264266

265267
Install py.test to run the tests. You'll also need the python compiler package for pytest:
266268
```
267-
sudo pip install pytest
269+
sudo pip3 install pytest
268270
```
269271
Execute the following in the root of the project:
270272
```
271-
sudo pytest
273+
pytest
272274
```
273-
NOTE: `sudo` should not be required when running [Debian 9.2 "Stretch" iot (2017-10-29)](https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#microSD.2FStandalone:_.28stretch-iot.29_.28All_BeagleBone_Variants_.26_PocketBeagle.29) with [Linux kernel](https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Kernel_Options) [4.14.x](https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Mainline_.284.14.x_lts.29) as udev configures group ownership and permission for [GPIO](https://github.com/rcn-ee/repos/blob/master/bb-customizations/suite/stretch/debian/80-gpio-noroot.rules) and [PWM](https://github.com/rcn-ee/repos/blob/master/bb-customizations/suite/stretch/debian/81-pwm-noroot.rules)
275+
NOTE: `sudo` should not be required as udev configures group ownership and permission for [GPIO](https://github.com/rcn-ee/repos/blob/master/bb-customizations/suite/stretch/debian/80-gpio-noroot.rules) and [PWM](https://github.com/rcn-ee/repos/blob/master/bb-customizations/suite/stretch/debian/81-pwm-noroot.rules)
274276

275277
## Reporting issues
276278

0 commit comments

Comments
 (0)