


If you have Python installed, you will see a lot of commands and other stuff that will indicate you can install pip. If the command is not recognized, then you need to download Python. To check whether you have Python, enter python in your command line, Bash, or terminal window and see what happens. If you don't already have Python installed on your system, do that first otherwise, the pip installer won't understand any commands. You can also check the pip.pypa documentation for more information. In this article, I explain how to install pip on Linux, Mac, and Windows computers. Older versions of Python didn't include pip, but it can be installed retroactively. Newer versions of Python 3 (3.4 and higher) and Python 2 (2.7.9 and higher) come preloaded with pip. Many of these packages can be installed just by typing python -m pip install into a terminal or command-line. Installing Python pip on your system allows you to manage PyPI packages easily. This article was last modified: May 30, 2019, 2:53 p.m. You should see an output similar to: pip 1.3.1 from /usr/lib/python2.7/site-packages (python 2.7) View a list of helpful commands: pip -helpĬheck the version of Pip that is installed: pip -V You can use cURL and Python to download and install Pip. Option 2: Install Pip with Curl and Python Step 2: Install python-pip and any required packages yum -y install python-pip If you are running CentOS 6 install the following repo instead: rpm -Uvh Īn alternative method depending on your Linux version is to use Yum: yum install epel-release 1 root root 156 Jul 4 07:00 CentOS-Vault.repo 1 root root 1331 Jul 4 07:00 CentOS-Sources.repo 1 root root 640 Jul 4 07:00 CentOS-Debuginfo.repo 1 root root 1612 Jul 4 07:00 CentOS-Base.repo It will create two epel’s repo file inside /etc/ Search epel repo package as per your Operating System architecture(EPEL URL) wget -r -no-parent -A 'epel-release-*.rpm' Step 1: First we will install the EPEL repo.Īs your server has an x86_64 Operating System architecture, we will use only epel repo package for x86_64. There are two options for installing Pip. This is a quick tutorial on installing Pip, a tool for installing and managing Python packages.
