Python installation settings and print functions

Source: Internet
Author: User

1.1 Linux Installation Python

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

# TAR-ZXVF Python-2.7.13.tgz

# CD Python-2.7.13

#./configure

# make

# make Install

1.2 Windows installation Python

A, click to download the installation package:Https://www.python.org/ftp/python/2.7.13/python-2.7.13.amd64.msi

b, click Install application, direct default installation (all the way Next)

C, configure environment variables: My Computer-Properties-Advanced system settings-environment variables-New or edit PATH environment variable-add Python installation path (C:\Python27)-Enter the python command in CMD to verify

1.3 Mac Installation Python

A, homebrew (brew install Python), this scheme is relatively simple, if the error can be preceded by the sudo test, so that the installation of Python may not be the latest version

b, download the installation from the official website, click Install package for default installation

The location of the python installed above the two installation methods is different, you can use which Python to view the installation location, you can enter Python in the terminal after installation to verify the installation success

1.4 Print function

After installing Python, we can try a simple output, the print function is a Python language output function , you can directly output strings, values, variables, and formatted output and so on

such as: print "Hello World" can be directly output Hello World string (Python2)


This article is from the "Dust FJ" blog, please be sure to keep this source http://fengjin.blog.51cto.com/9888513/1973040

Python installation settings and print functions

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.