python - 在 OSX mountain lion 上使用 Homebrew 软件安装 python 2.76 的问题

标签 python macos python-2.7 osx-mountain-lion homebrew

我正在 OSX mountain lion 上全新安装 homebrew 和 python。

这就是我到目前为止所做的......

$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
$ brew doctor
$ brew install readline sqlite gdbm --universal

一切正常,但现在我尝试安装 python..

$ brew install python --universal --framework

我现在得到这个错误..

$ brew install python --universal --framework
==> Downloading http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
######################################################################## 100.0%
Error: SHA1 mismatch
Expected: 8328d9f1d55574a287df384f4931a3942f03da64
Actual: 36a06fba4c5de9cc7338b5ca01bed976f7088b7b
Archive: /Library/Caches/Homebrew/python-2.7.6.tgz
(To retry an incomplete download, remove the file above.)

我已删除文件并重试。同样的错误。有人对此有解释吗?我错过了一些明显的东西吗?我可以强制 home brew 返回 python 版本吗?

谢谢。

最佳答案

尝试使用 curl 和/或 wget 手动下载文件,然后在其上运行 sha1sum。在您下载文件时,某些东西可能会伪造文件。

关于python - 在 OSX mountain lion 上使用 Homebrew 软件安装 python 2.76 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20411634/

相关文章:

python - 用 NaN 替换 dataframe 中的负值,用 fillna 方法替换 NaN

python - 实现 Flask 蓝图以便可以安全地多次安装它?

json - 在python中从json获取 key

python - 获取数组的最后一个索引的时间复杂度是多少?

python - 绘制高精度数据

python - 无法正确索引 NUMPY 数组的列表

swift - 主窗口关闭时如何退出应用程序

macos - OSX Terminal.app SSH 端口

macos - 从命令行打开一个 html 页面到 Mac OS 上的 anchor

python - 不使用 str 方法从类中检索数据