Install Numpy on Mac OS X Lion 10.7

前端 未结 9 1143
萌比男神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:09

    Based on this post, I found that Chris Fonnesbeck keeps a highly functional installer script for OSX 10.7 at the OSX SuperPack Github site.

    Because I hapened to have all the dependencies (such as gfortran) already, I did not use his full shell script. Rather I just did

    git clone --depth=1 git://github.com/fonnesbeck/ScipySuperpack.git  
    python -m easy_install -N -Z ScipySuperpack/*.egg   
    

    And it worked beautifully. In particular, it worked better than the .dmg files from the official numpy and scipy distributions, and better than pip install.

提交回复
热议问题