Python package manager pip installation pip is no stranger to friends who use python. when you want to install the python module, you will first think of it. Pip is a tool for installing and managing Python packages. it is a replacement of easy_install.
Let's talk about the pip installation method today.
Method 1: script installation
$ Wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py$ [sudo] python get-pip.py
Method 2: install with source code:
$ Curl-O https://pypi.python.org/packages/source/p/pip/pip-x.tar.gz$ tar xvfz pip-X.X.tar.gz $ cd pip-X.X $ python setup. py install
However, an error may occur during the installation process:
An error occurred while trying to run get-pip.py. Make sure you have setuptools or distribute installed.
This error indicates that setuptools must be installed first.
Setuptools installation:
Wget-q http://peak.telecommunity.com/dist/ez_setup.pypython ez_setup.py
After setuptools is installed, you can install the source code again.