Skip to content

Commit 3ecc70b

Browse files
authored
Update python software guide, close raspberrypi#1191
1 parent 4908410 commit 3ecc70b

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

linux/software/python.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Installing Python packages
22

3-
## APT
3+
## apt
44

5-
Some Python packages can be found in the Raspbian archives and can be installed using APT. For example:
5+
Some Python packages can be found in the Raspbian archives and can be installed using apt. For example:
66

77
```bash
88
sudo apt-get update
@@ -33,7 +33,7 @@ sudo apt-get purge python3-picamera
3333

3434
Not all Python packages are available in the Raspbian archives, and those that are can sometimes be out-of-date. If you can't find a suitable version in the Raspbian archives, you can install packages from the [Python Package Index](http://pypi.python.org/) (PyPI). To do so, use the `pip` tool.
3535

36-
`pip` is installed by default in Raspbian Jessie (but not Raspbian Wheezy or Jessie Lite). You can install it with `apt`:
36+
`pip` is installed by default in Raspbian Desktop images (but not Raspbian Lite). You can install it with `apt`:
3737

3838
```bash
3939
sudo apt-get install python3-pip
@@ -50,17 +50,21 @@ sudo apt-get install python-pip
5050
For example, the following command installs the Unicorn HAT library for Python 3:
5151

5252
```bash
53-
pip3 install unicornhat
53+
sudo pip3 install unicornhat
5454
```
5555

5656
The following command installs the Unicorn HAT library for Python 2:
5757

5858
```bash
59-
pip install unicornhat
59+
sudo pip install unicornhat
6060
```
6161

62-
**Note**: In Raspbian Wheezy, the command for managing Python 3 packages was `pip-3.2`, not `pip3`.
63-
64-
Uninstall Python modules with `pip3 uninstall` or `pip uninstall`.
62+
Uninstall Python modules with `sudo pip3 uninstall` or `sudo pip uninstall`.
6563

6664
Upload your own Python modules to `pip` with the [guide at PyPI](https://wiki.python.org/moin/CheeseShopTutorial#Submitting_Packages_to_the_Package_Index).
65+
66+
## piwheels
67+
68+
The official Python Package Index (PyPI) hosts files uploaded by package maintainers. Some packages require compilation (compiling C/C++ or similar code) in order to install them, which can be a time-consuming task, particlarly on the single-core Raspberry Pi 1 or Pi Zero.
69+
70+
piwheels is a service providing pre-compiled packages (called Python wheels) ready for use on the Raspberry Pi. Raspbian is pre-configired to use piwheels for pip. Read more about the piwheels project at www.piwheels.org.

0 commit comments

Comments
 (0)