在已安装 XCode 4 的 Snow Leopard (10.6) 上安装 NumPy

发布于 2024-12-03 15:33:55 字数 379 浏览 8 评论 0原文

现在我已经升级到 Xcode 4,我似乎无法将 NumPy 安装到系统 Python。

当我尝试这样做时:

easy_install -U numpy

我得到:

File "/private/tmp/easy_install-xoqh9U/numpy-1.6.1/numpy/core/setup.py", line 696, in get_mathlib_info
RuntimeError: Broken toolchain: cannot link a simple C program

我想使用系统 Python(我编译/安装了许多其他模块,并且不这样做)不想为此目的使用 EPD)。

I can't seem to install NumPy to System Python now that I've upgraded to Xcode 4.

When I try to do:

easy_install -U numpy

I get:

File "/private/tmp/easy_install-xoqh9U/numpy-1.6.1/numpy/core/setup.py", line 696, in get_mathlib_info
RuntimeError: Broken toolchain: cannot link a simple C program

I'd like to use System Python (I have many other modules compiled/installed, and don't want to use EPD for this purpose).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

短叹 2024-12-10 15:33:55

您已从网站下载 tar.gz 文件,将其解压缩,然后将该文件夹移动到任何

可以通过键入

sys.path获取的 pythonpath

you have download tar.gz file from the site unzip it and then move that folder to any of the pythonpath

which you can get by typing

sys.path

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文