Python Environment setup

Source: Internet
Author: User

    1. Windows installation Python

      Download:

      Https://www.python.org/ftp/python/2.7.11/python-2.7.11.amd64.msi

      The installation process is the next step ...

      Modify environment variables after installation

      Right-click on the computer-"Properties-" Advanced system Configuration-"advanced-" Environment variables--"Click on Modify path, at the end of the semicolon plus the Python installation path, after installation in the CMD test.

    2. Linux installation Python

      Download

      wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz

      Linux comes with 2.6 update 2.7 required, Yum needs 2.6 support after update, to modify Yum file.

      Compiling the installation

      Tar zxvf python-2.7.11.tgz

    3. ./configure

    4. Make a && make install

Modify Original python2.6

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

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

Vim/usr/bin/yum

Change the first line/usr/bin/python to/usr/bin/python2.6

Python Environment setup

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.