python - Brew 未安装最新版本

标签 python macos homebrew osx-mountain-lion

我正在尝试在 Mac Mountain Lion 上获取最新版本的 python。但最新版本是2.7.4,但是当我运行brew install python时它会下载2.7.2。这是怎么回事?

brew install python

==> Downloading http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
File already downloaded in /Users/pietro/Library/Caches/Homebrew
==> Patching patching file Lib/whichdb.py
Hunk #1 succeeded at 91 with fuzz 1.
==> ./configure --prefix=/usr/local/Cellar/python/2.7.2 --enable-shared
==> make
==> make install
==> Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.24.tar.gz
File already downloaded in /Users/pietro/Library/Caches/Homebrew
==> /usr/local/Cellar/python/2.7.2/bin/python setup.py install
==> Caveats
A "distutils.cfg" has been written to: /usr/local/Cellar/python/2.7.2/lib/python2.7/distutils specifing the install-scripts folder as: /usr/local/share/python

If you install Python packages via "python setup.py install", easy_install, pip, any provided scripts will go into the install-scripts folder above, so you may want to add it to your PATH.

Distribute has been installed, so easy_install is available. To update distribute itself outside of Homebrew: /usr/local/share/python/easy_install pip /usr/local/share/python/pip install --upgrade distribute

See: https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python
==> Summary
/usr/local/Cellar/python/2.7.2: 4803 files, 81M, built in 2.4 minutes

最佳答案

您最近更新过 Homebrew(通过运行 brew up)吗? 2.7.4 是 Homebrew 中当前的 Python 版本。

关于python - Brew 未安装最新版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16442768/

相关文章:

python - 在 Django 中使用 Cython。是否有意义?

python - 从字典键更新 MySQL 行标题 (Python)

macos - 在 Mac m2 Monterey 上安装 home-brew 时出现问题

python - 无法使用 Python 连接到在不同端口运行的 Postgresql

python - 如何在Python中获取装饰器中方法的调用者?

objective-c - 防止来自 "PerformSelect may cause a leak because its selector is unknown"的警告

macos - 告诉 NSDocument 该文档已被修改

c - 为什么 Clang 的汇编器输出是有条件跳转到无条件跳转?

macos - Homebrew 错误 : No formulae found in taps

macos - 如何升级kubectl客户端版本