Today, I deployed the Python program on the server and found that the Requests Library was missing from the server. so I tried to install it. how can I install Python pip in CentOS, first, check the server system version [python] viewplaincopy # cat & nbsp.
Today, I deployed the Python program on the server and found that the Requests Library was missing on the server. so I tried to install it. how does the CentOS version install Python pip? the apt-get method under Ubuntu I mentioned earlier
First, check the server system version.
[Python]View plaincopy
- # Cat/etc/issue
- CentOS release 6.5 (Final)
- Kernel \ r on an \ m
Install pip first
Yum install python-pip
Then install requests,
Pip install requests
In centOS6.5 and python2.6, this can be successfully installed. However, other versions may have problems depending on the information on the internet. you need to compile the source code for installation.