[英]Homebrew python formula pip installation
The Homebrew python formula says it installs pip & setuptools, but pip isn't in my path, and the following find doesn't return any results: Homebrew python 公式说它安装了 pip 和 setuptools,但 pip 不在我的路径中,并且以下查找不会返回任何结果:
sudo find / -name pip -type f
How can I get pip & setuptools to work on my machine?如何让 pip & setuptools 在我的机器上工作? It's running OS X 10.11.1.
它运行的是 OS X 10.11.1。
Update The output for brew info python
is:更新
brew info python
的输出是:
python: stable 2.7.10 (bottled), HEAD
Interpreted, interactive, object-oriented programming language
https://www.python.org
/usr/local/Cellar/python/2.7.10_2 (5902 files, 92M) *
Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/python.rb
==> Dependencies
Build: pkg-config ✔
Required: openssl ✔
Recommended: readline ✔, sqlite ✔, gdbm ✔
Optional: homebrew/dupes/tcl-tk ✘, berkeley-db4 ✘
==> Options
--universal
Build a universal binary
--with-berkeley-db4
Build with berkeley-db4 support
--with-poll
Enable select.poll, which is not fully implemented on OS X (https://bugs.python.org/issue5154)
--with-quicktest
Run `make quicktest` after the build (for devs; may fail)
--with-tcl-tk
Use Homebrew's Tk instead of OS X Tk (has optional Cocoa and threads support)
--without-gdbm
Build without gdbm support
--without-readline
Build without readline support
--without-sqlite
Build without sqlite support
--HEAD
Install HEAD version
==> Caveats
Pip and setuptools have been installed. To update them
pip install --upgrade pip setuptools
You can install Python packages with
pip install <package>
They will install into the site-package directory
/usr/local/lib/python2.7/site-packages
See: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md
.app bundles were installed.
Run `brew linkapps python` to symlink these to /Applications.
I ran brew linkapps python
as per the instructions above.我按照上面的说明运行了
brew linkapps python
。
Python 2.7.9 and later (on the python2 series), and Python 3.4 and later include pip by default, so you may have pip already. Python 2.7.9 及更高版本(在 python2 系列上)和 Python 3.4 及更高版本默认包含 pip,因此您可能已经拥有 pip。
SetupTools -- Easily download, build, install, upgrade, and un-install Python packages SetupTools——轻松下载、构建、安装、升级和卸载 Python 包
Please look, https://pypi.python.org/pypi/setuptools请看, https://pypi.python.org/pypi/setuptools
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.