2

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
  • 321
  • 3
  • 17
JohnJ
  • 6,094
  • 10
  • 46
  • 72
  • 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

3

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

tripleee
  • 158,107
  • 27
  • 234
  • 292