Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pip vs pip2 vs pip2.7?

3,481 views
Skip to first unread message

Chupo

unread,
Jun 15, 2016, 5:01:13 PM6/15/16
to
Hi everyone,

this is my first post here. I've been using Python occasionally to
accomplish some specific tasks but now I decided to study it more
seriously.

I am successfully using both Python 2.6.2 and Python 3.2.2 instaled on
Windows. I installed 2.6.2 back in 2009. and 3.2.2 came along with the
VPyton 5.74 MSI installer.

There was no problems but today I decided to install Python 2.7.11 as
the latest pre-3.x.x version and the first thing I noticed was the
'Scripts' folder which was not present in earlier versions, containing:

easy_install.exe
easy_install-2.7.exe
pip.exe
pip2.exe
pip2.7.exe

So my question is - which one should I use to install the Python
packages? Should I just use pip, of pip2 or pip2.7 and what is the
difference?

Typing:

pip list

in command prompt says:

>pip list
pip (7.1.2)
setuptools (18.2)
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade
pip' command.

>pip2 list

and

>pip2.7 list

results in exactly the same - what is then purpose of three different
'pip*.exe' executables?

I noticed both easy_install files are of the same size (89.448 bytes)
and all 3 of the pip files are of the same size (89.420 bytes) as well.

In fact, easy_install.exe and easy_install-2.7.exe are exactly the same
compared by binary compare utility, and pip, pip2 & pip2.7 are exactly
the same up to the single byte :-/

I am assuming multiple copies of the same file with different names are
because of some compatibility issues but couldn't find any explanations
so I hope someone can point me to some docs explaining the issue.
--
Let There Be Light
Custom LED driveri prema specifikacijama
http://tinyurl.com/customleddriver

Chupo

Random832

unread,
Jun 15, 2016, 5:10:41 PM6/15/16
to
On Wed, Jun 15, 2016, at 16:34, Chupo via Python-list wrote:
> I am assuming multiple copies of the same file with different names are
> because of some compatibility issues but couldn't find any explanations
> so I hope someone can point me to some docs explaining the issue.

The idea is, if you have multiple python installations on your path,
"pip" will find the first one, "pip2" will find the first python2 one
(so if the first one was python3, or vice versa), and pip2.7 will find
2.7 even if e.g. 2.6 was before it on the path.

It makes a bit more sense on Unix where all of these are in /usr/bin and
only the primary "pip" [of whatever your main python installation]
actually exists.

Chupo

unread,
Jun 15, 2016, 6:30:14 PM6/15/16
to
In article <mailman.84.14660250...@python.org>,
Random832 <rand...@fastmail.com> says...
> The idea is, if you have multiple python installations on your path,
> "pip" will find the first one, "pip2" will find the first python2 one
> (so if the first one was python3, or vice versa), and pip2.7 will find
> 2.7 even if e.g. 2.6 was before it on the path.
>
> It makes a bit more sense on Unix where all of these are in /usr/bin and
> only the primary "pip" [of whatever your main python installation]
> actually exists.
>

Thank you very much for the reply!

So I guess it will be safe if I just add only 2.7 installation dir to
the PATH var and use 'pip'.
0 new messages