I have two versions of Python on my Mac: 2.7 and 3.8.
When installing packages, I use pip3
instead of pip
in order for the packages so install for the correct Python version.
However, I noticed that I can also install with Python3
in the terminal:
python3 -m pip install ...
Is there a difference between the two? I noticed they showed different pip versions which was a bit strange.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…