On 6/8/2023 6:23 PM, Eryk Sun wrote:
on 6/8/23, Thomas Passin via Python-list <python-list@python.org> wrote:
It always gets installed, though.
By default, the option to install pip is enabled. It's implemented by
executing ensurepip after the interpreter is installed. However,
ensurepip may silently fail during installation. As a CPython triager
I've come across this problem a couple of times, but it should be
rare. It can possibly be resolved by manually executing ensurepip via
the following command:
py [-3[.X]] -m ensurepip --default-pip --upgrade --verbose
If Python is installed for all users, the latter should be executed
from a shell that has administrator access. Even if this command also
fails, the verbose output in the console may be helpful to further
diagnose the problem.
Hah! I *knew* someone would come up with an exceptional case. It would
be pretty hard for an ordinary user to know about this encantation or
make progress if something does go wrong. Lucky for me I've always had
the python.org installer work smoothly.
"By default, the option to install pip is enabled" - Why would someone
opt not to install pip, though? Would that be an attempt to prevent
users from installing packages on their own?
--
https://mail.python.org/mailman/listinfo/python-list