Windows installs both Python2 and Python3

Source: Internet
Author: User

The system was installed with python2.7 and is now ready to install a python3.6

1: First download a python3.6 for windows32-bit package Python-3.6.5.exe

Then directly by default double-click the installation, check the add to path when installing

Default installation path C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32

Enter this path to change the Python.exe into Python3.exe so that under DOS direct Python3, you can enter the PYTHON3 environment,

How to get into Python2? Default input Python

2 The key is how to use the Python3 PIP installation module, I did this, and of course there are other ways

Enter Python3 's PIP directory under CD C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\Scripts

Execute Command python3-m PIP package name

Verify Import Requests

3 There is one more important, the previous code in idle, how to choose to run in the Python2 or PYTHON3 environment?

Here you can choose the environment you want to run after the open meeting.

Windows installs both Python2 and Python3

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.