Windows10 under Python3 and Python2 installation at the same time (i) installation of Python3 and Python2

Source: Internet
Author: User

Windows10 Python3 and Python2 are installed simultaneously (i.)

Install Python3 and Python2


specifically , this article is carried out under the Windows64 bit system , 32-bit system please download the appropriate version of the installation package, the installation method is similar.

With Python development, the environment has two Python2 and python3, and sometimes requires two environments to switch to use, the following provides a detailed tutorial.

1. Download Python3 and Python2

Go to Python website, link https://www.python.org/

Select Downloads--->windows, and click on to see the Python version you want to find


This article selected the following:

Python3.5.2, click on the back link to download directly, Https://www.python.org/ftp/python/3.5.2/python-3.5.2rc1-amd64.exe

Python2.7.9, click on the back link to download directly, Https://www.python.org/ftp/python/2.7.9/python-2.7.9.amd64.msi



2, Python3 installation

Note: This article first installs the Python3, then installs the Python2

First choose the installation directory, this article installation path for D:\Python\python35, and then click on the download good Python3 package to install, the specific process is as follows:

In the red marked place below add Python3.5 to path, you can add python3 directly to the system environment variable and then customize the installation path in Customize installation.


Direct Next


The advanced options in the figure below are not checked by default, and are marked with a yellow mark for VS 2015 and later versions, if you plan to configure the Python environment in VS 2015, click Browse to select the installation directory, Then click Install to install.

Wait for the following installation process

Installation Successful

Click to close, view Python3 installation, press "Win + R" shortcut key, in the Open "Run" dialog box, enter "cmd" press ENTER, enter the following interface, input Python view python3 installation, display Python 3.5.2 version information, the installation was successful, You can enter the statement print (1 + 1) for testing.


The final step is to find python3 idle installation location, send a shortcut to the desktop can

Open the python3.5.2 shell interface for Python development


3, Python2 installation

Click Python2 installation package, click Run, Next, select the installation directory, this article installation path is D:\Python\python27, and then next


The section below the yellow circle shows that it is not possible to add a path to a system variable, and that it is not possible to use the Python command directly, and then click Next to install it, which is specifically addressed later.



Click Finish to complete the installation.

At this point, Python2 and Python3 installed.


Special note: At this time run "cmd" command into the DOS command prompt box, input python still shows Python3 version, Next please refer to this series of tutorial two.



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.