software:python
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| software:python [2024/08/03 02:13] – [Python] superwizard | software:python [2024/08/03 02:18] (current) – [Python install] superwizard | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| python -m pip install pandas | python -m pip install pandas | ||
| + | But when you use python -m pip with python being the specific interpreter you want to use, all of the above ambiguity is gone. If I say python3.8 -m pip then I know pip will be using and installing for my Python 3.8 interpreter (same goes for if I had said python3.7). | ||
| + | And if you're on Windows there is an added benefit to using python -m pip as it lets pip update itself. Basically because pip.exe is considered running when you do pip install --upgrade pip, Windows won't let you overwrite pip.exe. But if you do python -m pip install --upgrade pip you avoid that issue as it's python.exe that's running, not pip.exe. | ||
| + | |||
| + | From < | ||
software/python.1722651224.txt.gz · Last modified: by superwizard
