Python2 and 3 issues when using PIP

Source: Internet
Author: User
Tags install django pip install django

WIN10, the computer is equipped with Anaconda,python2. Because Python3 is needed, the Python3 is installed directly. Python3 the default path in the C drive. I moved it to the D drive and modified the two environment variables. The default Python version of the computer should be python3.

At this time, I think with PIP3 can be installed to python3 under, but there is a problem, said there is a space error. Don't understand

At this point, I use the PIP,PIP will be installed under the Python2.

There are several different workarounds:

1) Use command python pip.exe install yourpackage under your Python3 scripts.

The command for the PIP version update is given in the figure.

2) prefix (Not for me)

Run Python2:py-2 hello.py

Run Python3:py-3 hello.py

Similarly installed: py-2-m pip install xxxx or py-3-m pip install xxxx

3) python-m pip install Django (not for me)

4) Change Pip and Python.exe name

Python2 and 3 issues when using PIP

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.