[issue45148] ensurepip upgrade fails

baterflyrity report at bugs.python.org
Thu Sep 9 03:52:25 EDT 2021


baterflyrity <baterflyrity at yandex.ru> 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 <report at bugs.python.org>
<https://bugs.python.org/issue45148>
_______________________________________


More information about the Python-bugs-list mailing list