Why is it "pip2" instead of "pip" after installed python with brew? -


i ran brew install python on mac 10.12.3, , logs following:

==> summary 🍺  /usr/local/cellar/sqlite/3.20.1: 11 files, 3.0mb ==> installing python ==> downloading https://homebrew.bintray.com/bottles/python-2.7.13_1.sierra.bottle.tar.gz ######################################################################## 100.0% ==> pouring python-2.7.13_1.sierra.bottle.tar.gz ==> /usr/local/cellar/python/2.7.13_1/bin/python2 -s setup.py --no-user-cfg install --force --verbose --single- ==> /usr/local/cellar/python/2.7.13_1/bin/python2 -s setup.py --no-user-cfg install --force --verbose --single- ==> /usr/local/cellar/python/2.7.13_1/bin/python2 -s setup.py --no-user-cfg install --force --verbose --single- ==> caveats formula installs python2 executable /usr/local/bin. if wish have formula's python executable in path add following ~/.bash_profile:   export path="/usr/local/opt/python/libexec/bin:$path"  pip , setuptools have been installed. update them   pip2 install --upgrade pip setuptools  can install python packages   pip2 install <package>  install site-package directory   /usr/local/lib/python2.7/site-packages  see: https://docs.brew.sh/homebrew-and-python.html ==> summary 

```

as log said, have pip2 command other pip. how should these happen?

because both python2 , python3 install executables pip , python, homebrew installs each executable suffixed either 2 or 3.

the problem installing pip python 2 , pip3 python 3 people tend rely on default, non-suffixed version. change, homebrew lets choose want have default python/pip using e.g. aliases or modifying path.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -