Umar bin Khattab - Episode 2
Installing pip for Python 3 Ubuntu 18.04 ships with Python 3, as the default Python installation. Complete the following steps to install pip (pip3) for Python 3: Start by updating the package list using the following command: $ sudo apt update Use the following command to install pip for Python 3: $sudo apt install python3-pip The command above will also install all the dependencies required for building Python modules. Once the installation is complete, verify the installation by checking the pip version: $ pip3 --version The version number may vary, but it will look something like this: pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6) Installing pip for Python 2 Python 2 is not installed by default in Ubuntu 18.04. To install Python 2 and pip for Python 2, complete the following steps: Update the package index by running the following command: $ sudo apt update Install pip for Python 2 with: $ sudo apt install python-pip The command above will install Python2, Pip and all