From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by sourceware.org (Postfix) with ESMTPS id 3BA0B3858004 for ; Sat, 28 Nov 2020 19:05:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3BA0B3858004 Received: by mail-qk1-x72a.google.com with SMTP id i199so7312388qke.5 for ; Sat, 28 Nov 2020 11:05:36 -0800 (PST) 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: In-Reply-To: From: Nicholas Clark Date: Sat, 28 Nov 2020 12:05:23 -0700 Message-ID: Subject: Re: pip newer version available To: Csaba Raduly , cygwin 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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Nov 2020 19:05:37 -0000 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 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 >