Built under Windows Python environment

Source: Internet
Author: User

Python is a cross-platform, portable programming language that can be installed in Windows, Linux/unix, and Mac OS X systems. Once the installation is complete, you will get the Python interpreter environment, a command-line interaction environment, a simple integrated development environment, and related help documentation.

Python-related web site address:

Python official website: http://www.python.org/python document address: http://www.python.org/doc/Python module Warehouse Https://pypi.python.org/pypi

Before we formally install and learn python, we have one more question to consider, that is, choose Python2 or Python3?

Python has a unique version problem, which is that it has both 2.x and 3.x versions of the two release lines, and there are some grammatical differences between the two, and many times 3.x is not compatible with 2.x. But history is always going forward, it can't last forever, In order to make 3.x a unique version of the line, but also let the 2.x version of the user can have time to transition to the 3.x version, Python officially launched the 2.7 version, it is the last release of 2.x, on many features to the 3.x, belong to the interim transition version. Python official also gives the end time of the 2.7 version, when the 2.x version will no longer be released. But the existing 2.x version of the application and modules too much, many companies and enterprises are still using the 2.x version, there are some important third-party libraries do not fully support the python3.x, production environment of the "big ship" is not so good to turn around. So what is the choice for us beginners?

In this, the official explanation here: Https://wiki.python.org/moin/Python2orPython3, its full meaning is basically Python3 is the language of the present and the future, Python2 will become the past style.

My advice to you is that as a new scholar, try to choose the latest version of Python3 without the company's mandatory requirements, such as the 3.6 version when this article was written. This tutorial will be conducted in the following environments:

First go to the official website to download the installation files. Select Windows under download instead of directly selecting the button on the right, so you can't choose the format of the downloaded file:

Note: The python version above 3.5+ does not support Windows XP and earlier versions of the operating system, and the Windows 7 system must have the SP1 package installed, which is important for the students to keep in mind.

After you enter the version selection page, press to select:

Among them, Python 3.6.1 - 2017-03-21 This file name is a stable release version, belonging to our selection of objects, under which there are several optional file types. Usually we all choose 64 bit, if only 32 bits, it is selected in 1-3. Web-based is a network-based installation that requires networking. Executable is an executable file, which is our best option, which can be saved locally and can be installed when the network is disconnected. Embeddable zip is an embedded installation, which is typically not required for embedded development versions. The last one is the Help file under Windows and does not require special care.

Click on the link and wait patiently for the download. Speed slow students can consider the domestic mirror site or software site, please download Baidu by yourself.

After the download is complete, we will get a name for python-3.6.1-amd64 the installation file, run the file, and you will see the installation window:

Note: Because my local machine already has Python3.6.1, so I copied from elsewhere to install the face, but does not affect the use. It is recommended to select Customize installation and then use a path similar to C:\Python36 for later use. Note The Add Python3.6 to PATH options below, make sure to tick, which saves you the ability to configure the system environment variables.

If your machine has Python3.6.1 installed, like mine, or is installing 3.6.2, then the following upgrade screen will appear, its upgrade process no longer repeat:

Installation verification:

If there are no errors in the middle, then use the Win+r key, enter the CMD interface, run python -V (uppercase V), if the execution results display python 3.6.1 , the installation is successful.

or enter directly python into the interactive interface shown, also indicates that the installation was successful.

If the error pops up: python不是内部或外部命令,也不是可运行的程序或批处理文件。 Either it is not installed properly, or the environment variable is not set correctly. Please set the environment variable as prompted in.

What do python, Python2, Python27, Python3, python36 all mean?

Python supports multiple versions of coexistence, many beginners if the Python version of the machine is too many, the Python executable will appear, they are actually shortcuts or aliases, pointing to a specific Python execution program. To differentiate between the 2.x version and the 3.x version, a specific version number is usually appended to the python. But this is not mandatory, and if you point the Python2 to Python3 's interpreter, unexpected errors may occur. Especially prone to this error is the python command, which does not have a version number, without specific execution, you do not know which version it points to, the only way to detect it is at the command line, run a bit, and then follow the prompts to view the version information.

Built under Windows Python environment

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.