On 3/21/2024 4:19 PM, Grant Edwards via Python-list wrote:
On 2024-03-21, MRAB via Python-list <python-list@python.org> wrote:

As it's recommended to use the Python Launcher py on Windows, I use
that instead:

py -m pip install something

because it gives better support if you have multiple versions of
Python installed.

I adopted that practice years ago on Linux as well after wasting what
seemed like most of a day trying to figure out problems which turned
out to be caused by the fact that "pip" and "python" invoked different
versions of Python.

Although you still need to be aware that there might be a different Python installation between e.g. "python3 -m pip" and "python3.11 -m pip", etc. depending on what's been installed.

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to