Installation of Python

Source: Internet
Author: User

1. Installation in Linux system:

As long as the Linux operating system, the default is already installed in Python. It may not be the latest version, as long as the python2.7.x version is available.

If you do not want to install yourself, you can refer to the following actions:

    • to the official website to download the source code. For example:

      wget   https://www.python.org/ftp/python/2.7.10 /python-2.7.10.tgz

    • Unzip the source package

      TAR-ZXVF python-2.7.10.tgz

    • compile

      a, CD Python-2.7.10  ,

      b,./configure--prefix=/usr/local   #最好指定安装目录, if not developed, you can use the default.

      c, Make&&make install

Once installed, enter the shell, enter Python, if you see it, >>> and display the Python version information, congratulations, this goes into Python's interactive mode.


2. Installation in Windows System:

Here to find the Windows Installer, download it, such as download the file: Python-2.7.10.msi. Then there is the constant "next step" to complete the installation.

In particular, after installation, it is necessary to check if there is python in the environment variable.

This is done, in cmd, enter Python, get the results similar to the above, it means that it has been installed.







This article is from the "Urapidil" blog, please make sure to keep this source http://wjgdu.blog.51cto.com/10878328/1716509

Installation of Python

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.