PIP notes
pip
is a package installer python, it can be use to install packages fro the python packages index.
Check if pip
is install¶
pip is already installed in python 2 and python 3, but we can double check the version in the following way:
Installation¶
There are two was to install packages using pip
one will be for machines with access to a network and other without access
With access to a network¶
We can install packages like:
Normally we will be able to use:
Without access to network¶
We can download the packages from PyPI or obtained elsewhere, and installed in the following way:
Installation of specific version of the packages¶
Get packages installed¶
to get a list of packages and versions install in a machine we can use
with the previous command we will get all the packages and save it in the document requirements.txt file
Uninstall packages¶
For uninstall packages: