I downloaded the Python3 first, and then because of the need for 2 to download the anaconda2, but found there is a very serious coexistence problem.
Looking for a variety of online coexistence problems, found that the internet is basically based on a anaconda and then create another environment through the virtual environment, thus realizing the coexistence of two py.
But this is not my intention, before looking for a lot in the method can not solve even. Now using Conda to download the package, actually found no-r this command ... In other words, you can't install all the packages like Pip-r Requirements.txt, only one is troublesome. So they still want to coexist.
In fact, py2 and py3 coexistence methods have a lot, I also read this blog only a little inspiration: http://blog.csdn.net/dream_an/article/details/51248736 But he is to the native py2 and py3 coexistence, And not like me is a py a anaconda, online a bit of this coexistence of information is not, then I write one.
The main part is to see the blogpython2 -m pip list #查看 这里受到启发,发现可以用不pip2 list,而直接通过python去指定py2引导pip2.
I was the original py3 and its script environment variable
At that time, the command line can only use PY3 (I do not have it py3 inside the python.exe changed intoPython3.exe, so running Python under CMD is the default entry into Python3 and running Pip is going into PIP3, and individuals are also more used 3), after installing the ANACONDA2, I did not move the environment variables, so in the CMD can only use anaconda2 Conda, but not into its python2 and PIP2, so this is a bit dry. And then this time to find a blog changed the Anaconda2 folder inside thePython.exeChanged to Python2.exe,pip.exe to Pip2.exe, and then in the exchange of gold, Amway added E:\Anaconda2 andE:\Anaconda2\scripts\, found this time in CMD can use Python2 into py2, but unfortunately pip2 useless, even conda are useless to see this error appears to be because I changedwhy Python.exe into Python2.exe? Just see that article of the-M command, Brainwave, and then think of the anaconda2 in the python.exe copy a rename like this, the Anaconda pip2 back to Pip, and then the environment variable py2 E:\Anaconda2\ Scripts\ Delete Only the remaining E:\Anaconda2(of course PY3 environment variables placed in front of them), so that the realization of the native Python3 and anaconda2 coexistence! (Just py2 use Pip to get up a little trouble, use it like this: python2-m PIP * * *)
This is the test, you can separate them to use! (Be sure to remember that PYTHON3 environment variable before python2, and Python2 does not need the PIP's environment variable)
Coexistence of Python3 and Anaconda2