How to Install Pip on Ubuntu 16.04 LTS
- These instructions are intended for an Ubuntu 16.04 LTS server, and we are logged in as root.
- If you are using a different operating system, check out pip installation guides.
Pip Installation & Verification
Ensure that all packages are up-to-date. After running the command below, you’ll get an output of any packages getting their update.
Install pip with cURL and Python. Downloading using the cURL command ensures the latest version of pip.
Verifying the installation of pip:
Basic Pip Commands
Pip can install 3rd party packages like Django, Tensorflow, Numpy, Pandas and many more with the following command.
Searching for Libraries
You can also search for other libraries in Python’s repository via command line. For our example let’s look for Django packages. The search command shows us an extensive list similar to the one below.
Uninstalling a Library
If you don’t need the library and your scripts use them you can uninstall easily with this command:
Installing Python Resources
Many times Python packages have a requirements.txt file, if you see this file, you can run this command to install all libraries in that package