3 ms·
Wait, but isn't the point of the article that it will not do that, and rather just run the pip.py in you current working directory?
by travisoneill1 6y ago
Wait, but isn't the point of the article that it will not do that, and rather just run the pip.py in you current working directory?
- Sebb767 6y agoOnly in the (probably unlikely) case that you have a `pip.py` in your CWD. In all other cases, it will execute pip as intended.
- BiteCode_dev 6y agoEven with the other form, if pip imports anything named like a pyhon module in the dl dir, it will be imported. That's because the current dir is automatically added to the PATH, using -m only add pip.py to the attack surface.
- coldtea 6y agoIn the off chance that you have one, yes. But in 99.9999999% of cases it will do what you expect (whereas "pip install x" will be easier to use the wrong one if you have multiple Python versions).