0

几个月前,pythonbrew 安装 2.7.3 失败,原因是一个从未解决的奇怪编译器错误。

现在我运行了 pythonbrew cleanup 并失败了:

OSError: [Errno 13] Permission denied: '/Users/Ceti/.pythonbrew/build/Python2.7.3/build/lib.macosx-10.8-x86_64-2.7/_AE.so'

为什么pythonbrew在我的root用户账户下安装文件?我手动删除了 Python-2.7.3 目录。

现在我正在尝试使用 Python 的 brew 安装最新的 2.7 版本,但是:

Ceti$ pythonbrew update
You are already running the installed latest version of pythonbrew.

Ceti$ pythonbrew install 2.7.4
ERROR: Unknown python version: `Python-2.7.4`
Ceti$ pythonbrew install 2.7.5
ERROR: Unknown python version: `Python-2.7.5`

Ceti$ pbi http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz
Downloading Python-2.7.5.tgz as /Users/Ceti/.pythonbrew/dists/Python-2.7.5.tgz
curl: (37) Couldn't open file /Users/Ceti/http%3A/www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz
ERROR: Failed to download.
Failed to fetch.


Ceti$ pbi /Users/Ceti/.pythonbrew/dists/Python-2.7.5.tgz
Use the previously fetched /Users/Ceti/.pythonbrew/dists/Python-2.7.5.tgz
Extracting Python-2.7.5.tgz into /Users/Ceti/.pythonbrew/build/Python-2.7.5

This could take a while. You can run the following command on another shell to track the status:

tail -f "/Users/Ceti/.pythonbrew/log/build.log"

Patching Python-2.7.5
ERROR: Failed to patch `/Users/Ceti/.pythonbrew/build/Python-2.7.5`.
1: failed to `(patch -p0 < "/Users/Ceti/.pythonbrew/patches/macosx/python27/patch-Modules- posixmodule.diff") >> '/Users/Ceti/.pythonbrew/log/build.log' 2>&1`

如何安装最新版本?

4

0 回答 0