by butwhywhyoh · 4y ago · 0 comments
They try to make finding your pip executable sound difficult, and even more difficult would be to understand what interpreter its tied to. Except...
> pip -V
> # pip 19.0.3 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)
I'm all for evangelizing best practices, but let's at least be honest about it.
It's fairly common for beginners to tell me they installed something using pip, then the Python interpreter can't find the package.
- always use python -m pip
- if in venv, it doesn't do any good, but do it anyway for consistency
- you should also use venv
So... Maybe just always use virtual env and then you can use just pip?