Install Python 2 & amp; Python3 cmd and install Python 2.

Source: Internet
Author: User

Install Python 2 and Python 3 cmd.

System: win7

Bytes

In this way, enter python directly in cmd and automatically execute python27.

After searching for solutions on the internet, I changed the names of the two python.exe files to python2 and python3 respectively.

However, this will create a lot of questions. For example, when running idle, python27will automatically re-create a python.exe file... That is to say, you have also changed it.

Finally, find a reasonable solution: Use python parameters to differentiate

Python2 usage

Py-2

Python3 usage

Py-3

It perfectly solves the problem of arbitrary python version Selection in cmd.

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.