Install pip and requests libraries on CentOS6.5 server

Source: Internet
Author: User
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
  1. # Cat/etc/issue
  2. CentOS release 6.5 (Final)
  3. 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.