Teach you how to install the Python environment

Source: Internet
Author: User

When it comes to learning Python programming learning, the first thing to master is how to install the environment, which is the most serious of learning whether Python or other programming languages. Today let's list out the specific steps for installing the Python environment for everyone to learn.

Windows:

1. Download the installation package

https://www.python.org/downloads/

2. Installation

Installation path: D:\python36

3. Configure Environment variables

"Right-click Computer"-"Properties"-"Advanced system Settings"-"Advanced"-"Environment variable"-"in the second content box to find the variable named path of a row, double-click"-"Python installation directory appended to the variable value, with;

such as: the original value; C:\python27, remember that there's a semicolon in front

Python update

Windows:

1. Unloading load can be

Linux:

View the default Python version

Python-v

1, install GCC, for compiling python source code

yuminstallgcc

2, download the source package, https://www.python.org/ftp/python/

3. Unzip and enter the source file

4. Compile and install

./configure

Makeall

Makeinstall

5. View version

/usr/local/bin/python2.7-v

6. Modify the default Python version

mv/usr/bin/python/usr/bin/python2.6

Ln-s/usr/local/bin/python2.7/usr/bin/python

7. To prevent Yum from performing exceptions, modify the Python version used by Yum

Vi/usr/bin/yum

Change the head #!/usr/bin/python to #!/usr/bin/python2.6

The above is the installation of the Python environment of the specific operation method, there are errors in the place also look at the amendment!

Teach you how to install the 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.