【发布时间】:2017-09-12 03:08:44
【问题描述】:
我在我的mac 10.12.3上运行brew install python,日志如下:
==> 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
This formula installs a python2 executable to /usr/local/bin.
If you wish to have this formula's python executable in your PATH then add
the following to ~/.bash_profile:
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
Pip and setuptools have been installed. To update them
pip2 install --upgrade pip setuptools
You can install Python packages with
pip2 install <package>
They will install into the site-package directory
/usr/local/lib/python2.7/site-packages
See: https://docs.brew.sh/Homebrew-and-Python.html
==> Summary
```
正如日志所说,我们有 pip 以外的 pip2 命令。这些应该如何发生?
【问题讨论】:
-
我不明白,你已经安装了 PIP,别名只是称为
pip2,可能是为了将它与你系统上的任何 Python 3pips 区分开来......究竟是什么您的问题/疑虑...? -
@juanpa.arrivillaga 这可能是直观的。一般来说,
install python*似乎应该导致可用的命令python*和pip*。