PYTHON2/3 Coexistence, PIP2/3 coexistence

Source: Internet
Author: User

Python2 and Python3 settings:

1, install Python2 and 3, and add environment variables;

2. Locate the installation directory for Python2 and Python3, modify the Python.exe and Pythonw.exe names in Python2 and Python3 Python2.exe, Pythonw2.exe, and Python3.exe, Pythonw3.exe.

3, respectively run: Python2 and python3 two command, check the installation situation;

PIP2 and PIP3 settings:

1. In the DOS command box, enter the command, python3-m pip install--upgrade pip--force-reinstall, display the reinstallation succeeded.

2. In the DOS command box, enter the command, python2-m pip install--upgrade pip--force-reinstall, display the reinstallation succeeded.

3, through the pip2-v and pip3-v two commands to view the two version of the PIP information, you only need to run PIP2 install XXX and PIP3 install XXX can be installed their own Python package.

PYTHON2/3 Coexistence, PIP2/3 coexistence

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.