繁体   English   中英

自制python公式pip安装

[英]Homebrew python formula pip installation

Homebrew python 公式说它安装了 pip 和 setuptools,但 pip 不在我的路径中,并且以下查找不会返回任何结果:

sudo find / -name pip -type f

如何让 pip & setuptools 在我的机器上工作? 它运行的是 OS X 10.11.1。

更新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.

我按照上面的说明运行了brew linkapps python

Python 2.7.9 及更高版本(在 python2 系列上)和 Python 3.4 及更高版本默认包含 pip,因此您可能已经拥有 pip。

SetupTools——轻松下载、构建、安装、升级和卸载 Python 包

请看, https://pypi.python.org/pypi/setuptools

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM