python pip3 fails after first invocation
Vinopal, John
jvinopal@carnegielearning.com
Mon Mar 6 22:35:53 GMT 2023
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.
More information about the Cygwin
mailing list