22 ms·
> This is awesome in terms of avoiding all of the weird things when a person typed pip rather than pip3 and module didn't seem to get installed anywhere This w
by dragonwriter 6y ago
> This is awesome in terms of avoiding all of the weird things when a person typed pip rather than pip3 and module didn't seem to get installed anywhere
This won't change that at all; pip/pip3 is a distro packaging thing, and any distro that packages legacy python2 as “python" and Python 3 as “python3” will probably continue packaging legacy pip-for-python2 as “pip” and pip-for-python3 as “pip3”.
- uranusjr 6y agoMost likely, some will rename the command and some will not, causing more pain for everyone :(
- Anon1096 6y agoThis is already the case. Arch has python for python 3 and python2 for python 2. It's the opposite on Ubuntu and most other distros.
- pseudalopex 6y agoArch is why there's a PEP saying not to do that.
- deleted 6y ago[deleted]
- Kwpolska 6y agoThe PEP [0] has been revised since then, and the current recommendation regarding /usr/bin/python is "equivalent to python2 OR equivalent to python3 OR not available at all OR configurable by user/sysadmin". [0] https://www.python.org/dev/peps/pep-0394/ https://www.python.org/dev/peps/pep-0394/
- cozzyd 6y agoOn Fedora: $ python --version Python 3.9.1
- verst 6y agoUbuntu 20.04 has python2 and python3 executables, but no python, so no ambiguity.
- wging 6y agoI like using `<python_executable> -m pip` to avoid all ambiguity about what python version I'm running pip with/installing things for. Usually `python3 -m pip`, or `python3.8 -m pip`.
- verst 6y agoI like using pyenv to manage Python versions which will then always symlink "pip" and "python" to whichever version is my system default, directory tree default, shell default, virtualenv etc.