If you are a Raspberry Pi user, the most recommended operating system is Raspbian because it is the official operating system designed and powered by the Raspberry Pi Foundation.
Starting with Raspbian Jessie , if you are using Jessie, PIP is installed by default. This is definitely one of the important reasons for you to upgrade to Raspbian Jessie instead of sticking with Raspbian Wheezy or Raspbian Jessie Lite. However, if you are using an older version of Raspbian, you can still install PIP as follows:
In Python 2.x:
sudo apt-get install python-pip
In Python 3.x:
sudo apt-get install python3-pip
For Raspbian, Python 2.x users should use pip while Python 3.x users should use pip3 when running the PIP command.
How to upgrade PIP for Python
Although PIP does not update regularly, it is important that the app stays on top of the new versions because PIP can have bug fixes, compatibility issues and security holes. Fortunately, upgrading PIP is quick and simple.
On Windows:
python -m pip install -U pip
On Mac, Linux or Raspberry Pi:
pip install -U pip
On certain versions of Linux and Raspberry Pi, you need to use pip3 instead.
Managing Python Packages with PIP
When PIP is ready, you can start installing packages from PyPI:
pip install package-name
To install a specific version of the package:
pip install package-name==1.0.0
Search for a specific PyPI package:
pip search "query"
See details about an installed package:
pip show package-name
List all installed packages:
pip list
List all outdated packages:
pip list --outdated
Upgrade obsolete package:
pip install package-name --upgrade
Note : PIP will automatically delete older versions of packages when it has been upgraded to a newer version.
Python is very interesting. Quantrimang recommends that you learn more about Python to be motivated to continue learning and to push your skills to new heights. You can refer to some of the following articles:
What is Python? Why choose Python?
6 reasons why Python will become the programming language of the future
11 tips for learning Python for 'newbie'
Open source Python projects for beginners
More than 100 Python exercises have solutions (sample code)
python is an interpreted, object-oriented, high-level programming language that is a great place for beginners to start learning how to program. python comes installed on macs and with linux, but you'll need to install it yourself if...
many gnu/linux distributions use the popular redhat package manager (rpm) system of adding or removing programs. almost all linux users will encounter the desire to add software to their computer, or remove a program that came with their...
if you want to start programming in python on your windows pc, you'll need to download and install a version of python. this wikihow teaches you how to install python (2 or 3) using the official windows installer, as well as how to fix the...
there are actually several ways to install skype on linux. this article will show you how to install skype on ubuntu using the snap package or download directly from the microsoft website.
microsoft's new windows package manager makes it easy to install apps by running a command. here's how to try out the new winget command and why this linux package manager is so interesting for the future of windows 10.
installing software on linux is managed by the package manager (software managers) and software repositories. unlike windows, software does not download from websites and run .exe files. if you are new to linux, you will feel a bit 'cultural shock.
get started with cross-platform python programming by setting up python on the windows subsystem for linux. here's how to set up python for wsl programming.
for applications not available through the software center, some developers create executable files in .run and .bin binary packages. this tutorial is intended to provide readers with instructions for installing those binary packages.
playonlinux provides a point and click interface (point and click) to automatically install and edit software on linux. it is like a package manager but for windows games and other applications on linux.