public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* python pip3 fails after first invocation
@ 2023-03-06 22:35 Vinopal, John
  2023-03-06 22:48 ` Marco Atzeri
  0 siblings, 1 reply; 2+ messages in thread
From: Vinopal, John @ 2023-03-06 22:35 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 2743 bytes --]

Windows 10 / Cygwin 3.4.6

Installed python 3.9: runs fine.  Ran pip3 -V: shows version.  Ran pip3 -V again: no output.

Something seems to happen when I run pip3 for the first time that breaks subsequent invocations.  Reinstallation yields the same results.  (Reinstallation also yields the following (perhaps unrelated) error).

Error in uninstall
running: C:\cygwin64\bin\bash.exe --norc --noprofile "/etc/preremove/python39-pip.sh"
abnormal exit: exit code=2

comp@130 ~/Downloads
$ python -V
Python 3.9.10

comp@130 ~/Downloads
$ pip3 -V
pip 21.3.1 from /usr/lib/python3.9/site-packages/pip (python 3.9)

comp@130 ~/Downloads
$ pip3 -V

comp@130 ~/Downloads
$ pip3 -V

OR WITH PIP LIST SAME PROBLEM

jvinopal@130 ~/Downloads
$ pip3 list
Package    Version
---------- -------
pip        21.3.1
setuptools 59.5.0
WARNING: You are using pip version 21.3.1; however, version 23.0.1 is available.
You should consider upgrading via the '/usr/bin/python3.9.exe -m pip install --upgrade pip' command.

comp@130 ~/Downloads
$ pip3 list

comp@130 ~/Downloads

OR WITH MANUAL INSTALL SAME PROBLEM

comp@130 ~/Downloads
$ /usr/bin/python3.9.exe -m pip install --upgrade pip
Requirement already satisfied: pip in /usr/lib/python3.9/site-packages (21.3.1)
Collecting pip
  Downloading pip-23.0.1-py3-none-any.whl (2.1 MB)
     |████████████████████████████████| 2.1 MB 3.3 MB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.3.1
    Uninstalling pip-21.3.1:
      Successfully uninstalled pip-21.3.1
Successfully installed pip-23.0.1

comp@130 ~/Downloads
$ pip3 -V
-bash: /usr/bin/pip3: No such file or directory

comp@130 ~/Downloads
$ pip -V
pip 23.0.1 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)

comp@130 ~/Downloads
$ pip -V

comp@130 ~/Downloads



John 
Vinopal (he/him)
Principal Software Engineer
e:jvinopal@carnegielearning.com
carnegielearning.com
scilearn.com
zorbitsmath.com
 Shaping the Future of Learning

This email message, including any attachments hereto or documents accessed via links contained herein, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this email message, any attachments hereto or documents accessed via links contained herein, is strictly prohibited. If you have received this email message in error, please immediately notify the sender and permanently delete the original and any copies of this email.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: python pip3 fails after first invocation
  2023-03-06 22:35 python pip3 fails after first invocation Vinopal, John
@ 2023-03-06 22:48 ` Marco Atzeri
  0 siblings, 0 replies; 2+ messages in thread
From: Marco Atzeri @ 2023-03-06 22:48 UTC (permalink / raw)
  To: cygwin

On 06.03.2023 23:35, Vinopal, John via Cygwin wrote:
> Windows 10 / Cygwin 3.4.6
> 
> Installed python 3.9: runs fine.  Ran pip3 -V: shows version.  Ran pip3 -V again: no output.
> 

I can not confirm

$ pip3 -V
pip 21.3.1 from /usr/lib/python3.9/site-packages/pip (python 3.9)

$ pip3 -V
pip 21.3.1 from /usr/lib/python3.9/site-packages/pip (python 3.9)

what happens if you use pip3.9 ? (see below)

> $ pip3 list
> Package    Version
> ---------- -------
> pip        21.3.1
> setuptools 59.5.0
> WARNING: You are using pip version 21.3.1; however, version 23.0.1 is available.
> You should consider upgrading via the '/usr/bin/python3.9.exe -m pip install --upgrade pip' command.
> 
> comp@130 ~/Downloads
> $ pip3 list
> 
> comp@130 ~/Downloads
> 
> OR WITH MANUAL INSTALL SAME PROBLEM
> 
> comp@130 ~/Downloads
> $ /usr/bin/python3.9.exe -m pip install --upgrade pip
> Requirement already satisfied: pip in /usr/lib/python3.9/site-packages (21.3.1)
> Collecting pip
>    Downloading pip-23.0.1-py3-none-any.whl (2.1 MB)
>       |████████████████████████████████| 2.1 MB 3.3 MB/s
> Installing collected packages: pip
>    Attempting uninstall: pip
>      Found existing installation: pip 21.3.1
>      Uninstalling pip-21.3.1:
>        Successfully uninstalled pip-21.3.1
> Successfully installed pip-23.0.1
> 
> comp@130 ~/Downloads
> $ pip3 -V
> -bash: /usr/bin/pip3: No such file or directory

that is probably caused by the installation that overlap
previous package

pip3 is a link managed by alternatives

$ ls -l /usr/bin/pip*
lrwxrwxrwx 1 Marco Benutzer  22 Aug 22  2020 /usr/bin/pip3 -> 
/etc/alternatives/pip3
-rwxrwxr-x 1 Marco Kein     223 Jan 12  2022 /usr/bin/pip3.6
-rwxrwxr-x 1 Marco Kein     223 Jan 12  2022 /usr/bin/pip3.7
-rwxrwxr-x 1 Marco Kein     223 Jan 12  2022 /usr/bin/pip3.8
-rwxrwxr-x 1 Marco Kein     223 Jan 12  2022 /usr/bin/pip3.9


$ alternatives --display pip3
pip3 - status is auto.
  link currently points to /usr/bin/pip3.9
/usr/bin/pip3.6 - priority 36
/usr/bin/pip3.8 - priority 38
/usr/bin/pip3.7 - priority 37
/usr/bin/pip3.9 - priority 39
Current `best' version is /usr/bin/pip3.9.


> 
> John

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-06 22:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-06 22:35 python pip3 fails after first invocation Vinopal, John
2023-03-06 22:48 ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).