There is a problem with pip when switching the version of python.

I need to install both python 2.6 and python 3.6 on my machine. Based on my query, I found that I could use pyenv to do this

things, but according to an article I read, python 2 series didn"t come with package management tools until python 2.7.9. Then I

does the installation of python 2.6 require an additional installation of a new pip? How can you tell the difference between pip 2. 6 and pip 3. 6?

with screenshots and directories of articles:

python-have-a-package-module-management-system" rel=" nofollow noreferrer "> https://stackoverflow.com/que.

clipboard.png


install an anaconda, and you'll find it's dawn.


personally, I think virtuanenv is a good way to switch environments. When you need python3, you only need to source < current_env > / bin/active to use the virtualenv,pip that is also the pip, of the current virtualenv.


you can set path. Pip of python2 called by pip2
pip3 calls pip of python3

clipboard.png

whether python 2.6requires an additional installation of a new pip
can be installed. Find out how to install pip yourself.


if you use pyenv, the current environment is python3, the current pip is python3, and the current pip is python2

.
Menu