You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
35
35
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`:
For example, the following command installs the Unicorn HAT library for Python 3:
51
51
52
52
```bash
53
-
pip3 install unicornhat
53
+
sudo pip3 install unicornhat
54
54
```
55
55
56
56
The following command installs the Unicorn HAT library for Python 2:
57
57
58
58
```bash
59
-
pip install unicornhat
59
+
sudo pip install unicornhat
60
60
```
61
61
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`.
65
63
66
64
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