On 6/7/2023 6:28 PM, Eryk Sun wrote:
On 6/7/23, Thomas Passin via Python-list <python-list@python.org> wrote:

You have by now seen several responses, and the one most likely to be
helpful is to run pip with

py -m pip

That won't be of any help if pip isn't installed. By default, Python's
installer attempts to install pip by running the ensurepip package,
but sometimes it fails. It can help to try to manually run ensurepip
in the shell. For example:

     py -m ensurepip --default-pip --upgrade --verbose

Yes, but why should anyone besides the OP think pip isn't installed? Let him try py -m pip. If pip isn't installed he will see something like

C:\Users\tom\AppData\Local\Programs\Python\Python311\python.exe: No module named pip

Then ensurepip should take care of it. Otherwise it's just that he hasn't tried the one thing that will certainly work as expected if pip is present.
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to