简体   繁体   English

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

[英]Installing NumPy on Snow Leopard (10.6) with XCode 4 installed

I can't seem to install NumPy to System Python now that I've upgraded to Xcode 4. 升级到Xcode 4后,我似乎无法将NumPy安装到System Python。

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). 我想使用System Python(我已经编译/安装了许多其他模块,并且不想为此目的使用EPD)。

you have download tar.gz file from the site unzip it and then move that folder to any of the pythonpath 您已经从站点下载了tar.gz文件,将其解压缩,然后将该文件夹移至任何pythonpath

which you can get by typing 您可以通过键入获得

sys.path 系统路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM