Re: Pip update fails

Tzu-ping Chung <[email protected]> Tue, 29 Sep 2020 16:26:15 +0800
Newsgroups gmane.comp.python.distutils.devel
Message-ID <[email protected]>
--===============1198986766178969921==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_145DD8DC-70F5-4CBF-B67F-CC728F6E2980"


--Apple-Mail=_145DD8DC-70F5-4CBF-B67F-CC728F6E2980
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

There=E2=80=99s some discussion on this a while ago on GitHub:
https://github.com/pypa/pip/issues/8450 =
<https://github.com/pypa/pip/issues/8450>

The problem is likely caused by a corrupt pip installation, and can be =
resolved by re-initialising pip with the built-in ensurepip module. Once =
pip is recovered, the suggested upgrade command should work as expected.

The comment with a green tick in the thread lists more detailed =
commands.

TP

--
Tzu-ping Chung (@uranusjr)
[email protected]
https://uranusjr.com

> On 29/9, 2020, at 16:14, [email protected] wrote:
>=20
> Hello,
>=20
> When I tried to install a package using pip, it informed me that there =
is a new version available.
> Per the recommendation, I tried to update pip, but the update failed.
>=20
> The following is the last few lines of the failure messages:
> =
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv=
vv
>  File =
"C:\Users\user\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\d=
istlib\scripts.py", line 386, in _get_launcher
>=20
>    raise ValueError(msg)
>=20
> ValueError: Unable to find resource t64.exe in package =
pip._vendor.distlib
>=20
> WARNING: You are using pip version 20.2.2; however, version 20.2.3 is =
available.
>=20
> You should consider upgrading via the 'C:\Program =
Files\Python38\python.exe -m pip install --upgrade pip' command.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>=20
> I can of course supply the full error traceback, if needed, not just =
these last few lines.
>=20
> The file:
> =
c:\Users\user\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\di=
stlib\t64.exe
> DOES exist.
>=20
> I just installed the latest python version 3.8.6 =E2=80=93 I would =
have thought it would already include the latest version of pip=E2=80=A6
>=20
> Any help resolving this failure will be much appreciated.
> --
> Distutils-SIG mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3/lists/distutils-sig.python.org/
> Message archived at =
https://mail.python.org/archives/list/[email protected]/message/XRT=
QTQQKWMGYCXAWQXCCEVNLU5HX5D7C/


--Apple-Mail=_145DD8DC-70F5-4CBF-B67F-CC728F6E2980
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
class=3D"">There=E2=80=99s some discussion on this a while ago on =
GitHub:</div><div class=3D""><a =
href=3D"https://github.com/pypa/pip/issues/8450" =
class=3D"">https://github.com/pypa/pip/issues/8450</a></div><div =
class=3D""><br class=3D""></div><div class=3D"">The problem is likely =
caused by a corrupt pip installation, and can be resolved by =
re-initialising pip with the built-in ensurepip module. Once pip is =
recovered, the suggested upgrade command should work as =
expected.</div><div class=3D""><br class=3D""></div><div class=3D"">The =
comment with a green tick in the thread lists more detailed =
commands.</div><div class=3D""><br class=3D""></div><div =
class=3D"">TP</div><br class=3D""><div class=3D"">
<div style=3D"color: rgb(0, 0, 0); letter-spacing: normal; orphans: =
auto; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div style=3D"color: rgb(0, 0, 0); letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div style=3D"color: rgb(0, 0, 0); letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div style=3D"color: rgb(0, 0, 0); letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">--<br class=3D"">Tzu-ping Chung (@uranusjr)</div><div =
style=3D"color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;" class=3D""><a href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a><br =
class=3D"">https://uranusjr.com</div></div></div></div>
</div>
<div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 29/9, 2020, at 16:14, <a =
href=3D"mailto:[email protected]" class=3D"">[email protected]</a>=
 wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><div =
class=3D"">Hello,<br class=3D""><br class=3D"">When I tried to install a =
package using pip, it informed me that there is a new version =
available.<br class=3D"">Per the recommendation, I tried to update pip, =
but the update failed.<br class=3D""><br class=3D"">The following is the =
last few lines of the failure messages:<br =
class=3D"">vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv=
vvvvvvvvvvvvv<br class=3D""> &nbsp;File =
"C:\Users\user\AppData\Roaming\Python\Python38\site-packages\pip\_vendor\d=
istlib\scripts.py", line 386, in _get_launcher<br class=3D""><br =
class=3D""> &nbsp;&nbsp;&nbsp;raise ValueError(msg)<br class=3D""><br =
class=3D"">ValueError: Unable to find resource t64.exe in package =
pip._vendor.distlib<br class=3D""><br class=3D"">WARNING: You are using =
pip version 20.2.2; however, version 20.2.3 is available.<br =
class=3D""><br class=3D"">You should consider upgrading via the =
'C:\Program Files\Python38\python.exe -m pip install --upgrade pip' =
command.<br =
class=3D"">^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^=
^^^^^<br class=3D""><br class=3D"">I can of course supply the full error =
traceback, if needed, not just these last few lines.<br class=3D""><br =
class=3D"">The file:<br =
class=3D"">c:\Users\user\AppData\Roaming\Python\Python38\site-packages\pip=
\_vendor\distlib\t64.exe<br class=3D"">DOES exist.<br class=3D""><br =
class=3D"">I just installed the latest python version 3.8.6 =E2=80=93 I =
would have thought it would already include the latest version of =
pip=E2=80=A6<br class=3D""><br class=3D"">Any help resolving this =
failure will be much appreciated.<br class=3D"">--<br =
class=3D"">Distutils-SIG mailing list -- <a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a><br class=3D"">To unsubscribe =
send an email to <a href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a><br class=3D""><a =
href=3D"https://mail.python.org/mailman3/lists/distutils-sig.python.org/" =
class=3D"">https://mail.python.org/mailman3/lists/distutils-sig.python.org=
/</a><br class=3D"">Message archived at =
https://mail.python.org/archives/list/[email protected]/message/XRT=
QTQQKWMGYCXAWQXCCEVNLU5HX5D7C/<br =
class=3D""></div></div></blockquote></div><br class=3D""></body></html>=

--Apple-Mail=_145DD8DC-70F5-4CBF-B67F-CC728F6E2980--

--===============1198986766178969921==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/archives/list/[email protected]/message/C2IHYFI3GNMR6GQYHNUZSMOXUEGKAQJ3/

--===============1198986766178969921==--