Python Learning Summary-----python installation

Source: Internet
Author: User

I. Introduction of Python

Python is an object-oriented, explanatory scripting language that follows the GPL protocol. Simple syntax, strong community, rich library support. Also known as "glue language". It is easy to combine the modules written in other languages (major C + +).


Second, Python installation

    • Install Python under Windows

Installing Python under Windows is relatively straightforward, just go to the Python website (www.python.org) to download it;

Python 2.7:https://www.python.org/ftp/python/2.7.14/python-2.7.14.msi

Python 3.6:https://www.python.org/ftp/python/3.6.3/python-3.6.3.exe

Double-click the installation, and always next. My default installation location is placed directly on the C drive.

After installation, if you want to start the Python interpreter directly in the CMD window, you also need to set the environment variable.

    • Install Python under Linux

Linux itself comes with a Python interpreter. I'm using centos6.8, and my own Python interpreter is 2.6.

# View the Python version of your own release Python-vpython 2.6.6

If you want to install a higher version, to avoid affecting your own Python library files, you can use Pyenv to install multiple isolated versions of Python on one operating system. I have been working in this way to install and switch easily.

    • Install Python under Mac

Because the Mac also comes with a Python interpreter. There are two ways to install.

    1. Homebrew

Brew Install Python

A single command can be completed, but may not be the latest version of the brew source installed

2. Download the installation directly on the Python website, the version is more, you can also download the latest version

Download page: https://www.python.org/downloads/mac-osx/

Direct installation of the official website of the guide installation can be.

Third, HelloWorld

1. Start python through the Windows CMD window

print "Hello World"

You can see the window echoing "Hello World"

Or execute hello world through Python's IDE.


This article is from the "Ping's Blog" blog, please be sure to keep this source http://pingqiang.blog.51cto.com/12739492/1973050

Python Learning Summary-----python installation

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.