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