CentOS Deployment Python Environment

Source: Internet
Author: User
Tags sqlite

Before deploying Python on CentOS, we need to configure the development environment first.

1. Install Python-dependent development kit

GCC is natural and can be used directly with "Development Tools":

Yum grouplist    #查看可安装的包yum groupinstall "Development tools"    #含有空格用引号括起来thereis gcc    #查看gcc安装位置gcc-- Version    #查看gcc安装版本

There are a few other dependent packages

Install Zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel#zlib-devel # Bzip2-devel #openssl-devel #ncurses-devel #sqlite-devel #readline-devel #tk-devel

  

2. Install the latest Python3.6

To view the installed Python information:

Python-v

Then take a look at the location of the Python executable file:

which Python

#输出:/usr/bin/python

Go to the Bin directory and view the Python file:

Cd/usr/binls-al python* output: lrwxrwxrwx. 1 root root    7 Dec  python-python2lrwxrwxrwx. 1 root root    9 Dec  python2-Python2. 7-rwxr-xr-x. 1 root root 7136 Nov  6  python2.7
#可以看到可执行文件python指向python2, Python2 also points to python2.7, which means that the Python command executes the preinstalled Python2.7 of the system.

  

  

CentOS Deployment Python Environment

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.