Install Numpy on Mac OS X Lion 10.7

前端 未结 9 1123
萌比男神i
萌比男神i 2020-12-18 10:27

I need to install Numpy on my Mac OS X Lion 10.7. I googled a little bit, it seems like there are a lot of stuff needs to be installed. And some says I need install Xcode be

9条回答
  •  庸人自扰
    2020-12-18 11:02

    For anyone that hits this from google, here is where I figured out how to build numpy on Mac OS.

    http://www.scipy.org/Installing_SciPy/Mac_OS_X

    On lion, it amounts to setting some environment variables (after Xcode is installed):

    export CC=gcc-4.2
    export CXX=g++-4.2
    export FFLAGS=-ff2c
    

    Then pip install numpy works just fine.

提交回复
热议问题