Third-party module for installing Python under Linux

Source: Internet
Author: User

1, the first need to have a Python environment

2, install PIP software:, https://pypi.python.org/pypi/pip/6.0.8

Decompression packet for PIP: sudo tar-zxvf pip-6.0.8.tar.gz
Then execute the following command, install PIP and enter PIP to verify if the installation was successful
Installing Pip:sudo python pip-6.0.8/setup.py Install
Execute the following command without GCC error (when installing the Python module: Error:setup script exited with Error:command ' GCC ' failed with exit status 1)
Command: sudo yum install gcc python-devel

After the PIP installation is successful, execute the following command to install the third-party module's requests
sudo pip install requests
Installing MYSQLDB
sudo pip install Mysql-python

Third-party module for installing Python under Linux

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.