pip
is a commonly used Python package management tool, mainly used to install software packages on PyPI
and can replace the easy_install
tool.
When installing the Python package management tool-Pip in Centos 7, it cannot be installed when using sudo yum install python-pip. This is because the source content of the Centos distribution is updated lagging behind, resulting in the python-pip package management tool not being found.
What is solved here is the problem when pip cannot be installed, or how to install the Python package management tool Pip in Centos 7.
1. Script installation pip
Download firstget-pip.pyscript, then run to install:
$ curl -O https://bootstrap.pypa.io/get-pip.py
$ python get-pip.py
2. Installation using package management software
1. First install the epel extension source:
$ sudo yum -y install epel-release
2. Then install python-pip
$ sudo yum -y install python-pip