On 4/16/2021 10:15 AM, Cameron Simpson wrote:
On 16Apr2021 13:13, Dan Ciprus (dciprus) <dcip...@cisco.com> wrote:
Isn't the recommended python3 way of pip-ing stuff:

python3 -m pip install ...

.. just curious.

If there's only one Python 3 installed then "pip3 install ..." _ought_
to be equivalent. However, in the face of virtualenvs etc there may
often be several pip3s.

Using "python3 -m pip install ..." ensures that you are using the pip
which is associated with "python3" (which you can adjust to be whichever
python3 you intend). This is why the "-m pip" form is recommended: it
definitely installs in the Python you'd be running.

It requires that pip itself be installed for pythonx, which can be ensured with "pythonx -m ensurepip".


--
Terry Jan Reedy

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

Reply via email to