I am a non-programmer who started to learn Python. My Mac OS X Yosemite shipped with Python 2.7.6. I installed Python 3.4.2 too. If I use pip
or easy_install
in the terminal to install a package, how do I know which Python I installed the package in? It seems Python 3.4.2 shipped with pip
and easy_install
, but I think Python 2.7.6 may also have some version of pip
or easy_install
. I know my system can have both versions of Python, but can it have multiple versions of pip
or easy_install
?
Which version of Python did pip or easy_install refer to by default?
173 views Asked by Sniper_3B At
2
There's an easy way around it - use
pip2
orpip2.7
orpip-2.7
for Python 2, andpip3
orpip3.4
orpip-3.4
for Python 3. Both version ship witheasy_install
, but Python 2 does not containpip
by default - you have to install it yourself.