Windows environment configuration: Install both the Python2.7 and Python3.6 development environments

Source: Internet
Author: User

First, download and install Python2.7 and Python3.6

Installation package: https://www.python.org/downloads/

Second, the configuration system environment variable is added in the environment variable

1. Installation directory \python27

2. Installation directory \python27\scripts

3. Installation directory \python36

4. Installation directory \python36\scripts

Third, modify the executable file in the installation directory to find the installation directory for Python2 and Python3, modify the Python.exe and Pythonw.exe names in python2.7 and python3.6 Python2.exe, Pythonw2.exe and Python3.exe, Pythonw3.exe. Enter Python2 carriage return and Python3 carriage return on the command line, you can get the corresponding version number, prove the installation configuration is successful. Four, install PIP in the DOS command box Input command, python2-m pip install--upgrade pip--force-reinstall, display the reinstallation succeeded. In the DOS command box, enter the command, python3-m pip install--upgrade pip--force-reinstall, to show that the reinstallation was successful. Now you can view the two versions of PIP information through Pip2-v and Pip3-v and then just run pip2 install XXX and pip3 install XXX to mount the respective Python packages. such as Ipython, Flake8, YAPF, Pylink and so on. V. Install Python's interactive mode, ipythonpip2 install IPYTHONPIP3 install Ipython

Windows environment configuration: Install both the Python2.7 and Python3.6 development environments

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.