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?
201 views Asked by Sniper_3B At
2
There's an easy way around it - use
pip2orpip2.7orpip-2.7for Python 2, andpip3orpip3.4orpip-3.4for Python 3. Both version ship witheasy_install, but Python 2 does not containpipby default - you have to install it yourself.