我正在尝试在 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/pythonIf 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/