Skip to Content
Raspberry Pi 3 Cookbook for Python Programmers - Third Edition
book

Raspberry Pi 3 Cookbook for Python Programmers - Third Edition

by Steven Lawrence Fernandes, Tim Cox
April 2018
Beginner content levelBeginner
552 pages
13h 58m
English
Packt Publishing
Content preview from Raspberry Pi 3 Cookbook for Python Programmers - Third Edition

Pip Python package manager commands

Useful commands for Pip (this is not usually pre-installed on Raspbian) are listed as follows:

  • To install Pip or Python 3, use the sudoapt-get install python3-pip command
  • Install the required package using sudo pip-3.2 install <packagename>
  • Uninstall a particular package using sudo pip-3.2 uninstall<packagename>
  • To find out the version of an installed package, use pip-3.2 freeze | grep <packagename>
  • Install a specific package version using sudo pip-3.2 install <packagename>==<version>

For example, to check the version of Pi3D installed on your system, use pip-3.2 freeze | grep pi3d.

To replace the installed version of Pi3D with Version 2.13, use sudo pip-3.2 uninstall pi3d and sudo pip-3.2 install pi3d==2.13 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Raspberry Pi for Python Programmers Cookbook - Second Edition

Raspberry Pi for Python Programmers Cookbook - Second Edition

Tim Cox

Publisher Resources

ISBN: 9781788629874Supplemental Content