Installation of Py2 and Py3 on WINDOWS10

Source: Internet
Author: User

2018-06-14 16:14:51

1. When installing Python2 and Python3 at the same time, Pip is just one version, when using the Python version of Pip, enter the following command at the command line:

  View the version of PIP under different Python versions

Python3-m pip-v

Python2-m pip-v

  Install the respective Python packages

python3-m pip xxx

python2-m pip xxx

2, the following modification method can reinstall two versions of PIP, so that two Python versions of PIP can coexist

In the DOS command box, enter the command, python3-m pip install--upgrade pip--force-reinstall, to show that the reinstallation was successful.

In the DOS command box, enter the command, python2-m pip install--upgrade pip--force-reinstall, to show that the reinstallation was successful.

The two versions of PIP information can now be viewed through pip2-v and pip3-v, with the ability to install their own Python packages later by running PIP2 install XXX and pip3 install XXX.

This article only records some of the operations that have been installed with py2 and Py3, please refer to the following for specific installation procedures:

Win10 Python3 and Python2 simultaneous installation and resolution of PIP coexistence issues

78121936

Installation of Py2 and Py3 on WINDOWS10

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.