简体   繁体   中英

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.

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).

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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