1

我想用自制软件安装 python3.3。

brew install python3

但失败了。我需要安装 Xcode 吗?

Warning: A newer Command Line Tools for Xcode release is avaliable
You should install the latest version from: http://connect.apple.com
==> Downloading http://python.org/ftp/python/3.3.0/Python-3.3.0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/python3-3.3.0.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/python3/3.3.0 --enable-ipv6 --datarootdir=/usr/local/Cellar/python3/3.3.0/share --datadir=/usr/local/Cellar/python3
==> make
  File "<frozen importlib._bootstrap>", line 562, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 854, in _load_module
  File "<frozen importlib._bootstrap>", line 988, in get_code
ValueError: unmarshallable object
make: *** [Lib/_sysconfigdata.py] Segmentation fault: 11

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

These open issues may also help:
    https://github.com/mxcl/homebrew/issues/16848
4

1 回答 1

3

答案就在错误中。安装 X-Code 并更新命令行工具。这是回答您问题的相关问题。

Xcode 4.4 及更高版本安装命令行工具

于 2013-02-08T11:58:41.100 回答