delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/11/28/14:06:31

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 283A4385EC4E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1606590339;
bh=fSO1dulLzvHCYWYfofhUsmYExEzdYAhD/agCnNFRszU=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=GbeyGzEzvR1MSh+i9dSiDuDvJEH2DBI7Ev9J45vlMAXEv5ci+zzeLSZzYnPbjV8JP
MrrrHZV6VFEKkDm7Si1daM1SXCPOqB1f7FfR/tOD8kCW8kfA8HUL43EqMY9Uj8pUqx
pIN5QRACQQzb937lPH5I4ZQZVHnDIqkjHkGJhU1g=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3BA0B3858004
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=DeHfIA/UZeDD4mWAA4GgLATVNn0zXqPpxhA/eZkzmHI=;
b=VN0pEj6liTOPzVuR9OnYeZwydLlA87nlZaCHEeFjfkqy9dBKwlWIk6CijcO9PQebYZ
ICmi++QE677vZiqt4ZgynydVTB43DrmurnOFDnGwUzyAaDG3kPIgiu3Bd5r+MF+t93jG
bpUya0aL+Zhv6VvSEPyurD5JLezglcsm4fKGwd0XYzine3DulUttqIAQf2gIFyUC3JGj
gSXaiEJ33W2/YaApug9GLiKIA9z6Xp4PZTYofwwD7T6uinicKcDzEukTumNj8AqkTZ7K
8by8HjvUbRfo5km1f73UL96LA3FbUns9K3LADMDi+slbR4jfRofR6YIsykyGVJZ4DxHU
w2uA==
X-Gm-Message-State: AOAM531JdOm5pqt8+GarJcC5/7iqzazG7Br0Wu0bac8cNOleKalCfAZF
gPqI23KDH+EAwqQzjFgD6mVw/fQrOu9KddU1gQY=
X-Google-Smtp-Source: ABdhPJylDwJ51WQl0LPXh0w+RbD/VIwKcOInvtGqv3WT6af/gykyQmbUmH64mhmDckEL8YcbY/JteR9AkKYcxR3xwe4=
X-Received: by 2002:a37:a915:: with SMTP id s21mr1841571qke.38.1606590335549;
Sat, 28 Nov 2020 11:05:35 -0800 (PST)
MIME-Version: 1.0
References: <CAEhDDbCfa06owmc_g7jpfBAmJemtUHi_P2cCHr-g5C+FQb3hyw AT mail DOT gmail DOT com>
In-Reply-To: <CAEhDDbCfa06owmc_g7jpfBAmJemtUHi_P2cCHr-g5C+FQb3hyw@mail.gmail.com>
Date: Sat, 28 Nov 2020 12:05:23 -0700
Message-ID: <CAKNeuBr6oQRf5a=esJWvFTsO=WZizQE_4E-0phRm8xQtbt7mcw@mail.gmail.com>
Subject: Re: pip newer version available
To: Csaba Raduly <rcsaba AT gmail DOT com>, cygwin <cygwin AT cygwin DOT com>
X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Nicholas Clark via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Nicholas Clark <nicholas DOT clark AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Your first command used your Windows installation of Python, not Cygwin's.
But it looks like you caught that.

To your question about upgrading pip in Cygwin, it's not usually a good
idea to overwrite any distro-provided packages. That's true on Linux and on
Cygwin as well.

But if you want access to some newer Python packages (or access to packages
that Cygwin doesn't provide), pip has a --user flag that will install
packages into your home directory instead of into your global Python
installation. That's a good way to install/upgrade packages without
breaking anything system-wide.

-Nick

On Sat, Nov 28, 2020, 07:20 Csaba Raduly via Cygwin <cygwin AT cygwin DOT com>
wrote:

> Hi all,
>
> I recently installed python27-pip (20.2.2-1) and did a "pip install
> grip", and at the end, pip displayed the following warning (or maybe
> it's just an advertisement)
>
> WARNING: You are using pip version 20.1.1; however, version 20.2.4 is
> available.
> You should consider upgrading via the
> 'c:\users\csaba\appdata\local\programs\python\python38\python.exe -m
> pip install --upgrade pip
> ' command.
>
> Is it a good idea doing this upgrade ("behind the back" of the Cygwin
> installer), or should I ignore this message until pip 20.2.4 (or
> higher) becomes available as a Cygwin package?
>
> Also, why is there a discrepancy between Cygwin's pip version and
> pip's own version?
>
> $ which python
> /usr/bin/python
> $ python -V
> Python 2.7.18
> $ which pip
> /cygdrive/c/Users/Csaba/AppData/Local/Programs/Python/Python38/Scripts/pip
>
> Whoops!
>
> $ which grip
> /cygdrive/c/Users/Csaba/AppData/Local/Programs/Python/Python38/Scripts/grip
>
> $ find /usr -name pip -type f
> $
>
> Check
> https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fpython27-pip%2Fpython27-pip-20.2.2-1&grep=%5Cbpip%5Cb
>
> $ which pip2
> /usr/bin/pip2
>
> Aha!
>
> $ pip2 install grip
> ... lots of output ...
> WARNING: You are using pip version 20.2.2; however, version 20.2.4 is
> available.
> You should consider upgrading via the '/usr/bin/python2.7 -m pip
> install --upgrade pip' command.
>
> $ which grip
> /usr/bin/grip
>
> Finally, sanity returns. Still, the question remains whether upgrading
> pip like this is advisable or not.
>
> Csaba
> --
> You can get very substantial performance improvements
> by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
> So if you're looking for a completely portable, 100% standards-conformant
> way
> to get the wrong information: this is what you want. - Scott Meyers
> (C++TDaWYK)
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019