Python2, 3 environment variable configuration (WIN10)

Source: Internet
Author: User

1. Locate this computer, right click on the properties

2. Left sidebar, advanced system settings

3. Click Advanced in the System properties

4. Click Environment variables

5. You can see a user variable and a system variable of two boxes

Where the system variable is to be used when you open CMD is run as Administrator in the environment variable

The previous user variable is the environment variable used to open cmd normally

Next, click on "Path" in the user environment variable.

And then create a new

Then enter the location of Python and create a new one to enter another python

Then notice that back to two Python locations, you'll see a python.exe

Entering python in Cmd will execute Python.exe

Because the Python2 Python3 folder is also Pyhon.exe

The system automatically picks up the previous one, so you need to rename one and then use the name as the command

If I were to name Pyhon2.exe in Python2,

Configuration complete

Python2, 3 environment variable configuration (WIN10)

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.