3

I have recently encountered a repo which has instructions to install the requirements via:

python -m pip install -r ..

I have always used just:

pip3 install -r ..

What is the difference between the two? Which is correct (if there is such a thing)?

Manumerous
  • 455
  • 6
  • 21
JohnJ
  • 6,736
  • 13
  • 49
  • 82
  • 1
    If you have multiple python executables, the first ensures that the specified python executable has the package installed. – Jeppe Aug 02 '20 at 13:36
  • I think there is a small typo in your question. It should be ```pip3 install -r ```. – Manumerous Aug 02 '20 at 13:42

1 Answers1

4

They are basically synonymous; on some platforms the latter won't always work for various reasons.

tripleee
  • 175,061
  • 34
  • 275
  • 318