[issue45148] ensurepip upgrade fails
New submission from baterflyrity : Upgrading pip via ensurepip unfortunately doesn't do anything wealthy. ```bash user@host MINGW64 ~ $ pip list | grep pip pip 21.2.3 WARNING: You are using pip version 21.2.3; however, version 21.2.4 is available. You should consider upgrading via the 'C:\Python39\python.exe -m pip install --upgrade pip' command. user@host MINGW64 ~ $ py -m ensurepip --upgrade Looking in links: c:\Users\BATERF~1\AppData\Local\Temp\tmpuv4go5fy Requirement already satisfied: setuptools in c:\python39\lib\site-packages (57.4.0) Requirement already satisfied: pip in c:\python39\lib\site-packages (21.2.3) user@host MINGW64 ~ $ pip list | grep pip pip 21.2.3 WARNING: You are using pip version 21.2.3; however, version 21.2.4 is available. You should consider upgrading via the 'C:\Python39\python.exe -m pip install --upgrade pip' command. ``` -- components: Windows messages: 401436 nosy: baterflyrity, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: ensurepip upgrade fails versions: Python 3.9 ___ Python tracker <https://bugs.python.org/issue45148> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45148] ensurepip upgrade fails
baterflyrity added the comment: See also: https://github.com/pypa/pip/issues/10453 -- ___ Python tracker <https://bugs.python.org/issue45148> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45148] ensurepip upgrade fails
baterflyrity added the comment: > Note the comment "to the bundled version". Thanks. Have not knew. > 1. You must *not* use the pip executable, you must use `python -m pip`, as > the command will be upgrading the pip executable and Windows won't let you > upgrade an executable you are using. You are wrong. Windows lets me update pip via pip. Also must notice that ensurepip also deletes the current pip before installing it's own. So in case of "Permission denied" error it just deletes pip (see https://github.com/pypa/pip/issues/9527). Should i create new issue for this? -- ___ Python tracker <https://bugs.python.org/issue45148> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45148] ensurepip upgrade fails
baterflyrity added the comment: >> You are wrong. Windows lets me update pip via pip. > >You have misinterpreted what you are seeing. I don't know technical details but i can successfully use this command: `pip install --upgrade pip`. >No, you should follow the correct process and use `python -m pip`, and not use >pip directly. On pip's issues tracker i was suggested to use `ensurepip --upgrade`. Therefore it deletes global system's pip when is ran without sudo or admin rights (when the current version of pip is lower then bundled). -- ___ Python tracker <https://bugs.python.org/issue45148> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45148] ensurepip upgrade fails
baterflyrity added the comment: OK, ive caught the salt of ensurepip. -- ___ Python tracker <https://bugs.python.org/issue45148> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com