What version of Python did pip or easy_install make as the default?
I am not a programmer who started learning Python. My Mac OS X Yosemite ships with Python 2.7.6. I also installed Python 3.4.2. If I use pip
or easy_install
in terminal to install a package, how do I know which Python I have installed the package in? It looks like Python 3.4.2 ships with pip
and easy_install
, but I think Python 2.7.6 may also have some version pip
or easy_install
. I know my system can have both versions of Python, but can it have multiple versions pip
or easy_install
?
The easy way is to use pip2
either pip2.7
or pip-2.7
for Python 2 and pip3
or pip3.4
or pip-3.4
for Python 3. Both versions ship with easy_install
, but Python 2 doesn't contain it by default pip
- you need to install it yourself.
pip -V
to find the default python version
If you have multiple versions, they are usually named pip2
for Python2, pip3
for Python3, etc.
You don't need to use easy_install anymore