How to install Scipy with pip on Mac Mountain Lion OS X v10.8

前端 未结 9 1678
天涯浪人
天涯浪人 2020-12-03 14:13

I\'m having serious difficulty installing Scipy with pip on Mountain Lion. I\'ve tried:

sudo pip install -e git+https://github.com/scipy/scipy#egg=scipy-dev
         


        
9条回答
  •  执笔经年
    2020-12-03 14:52

    Installing scipy on Mac OS X with pip is possible! You will need the right C and Fortran compilers on your system to set up scipy. This page should help you:

    http://www.scipy.org/scipylib/building/macosx.html

    Once you have done that, you should be able to install with pip install scipy.

    As an additional troubleshooting note, you might need to create a symlink to your compiler so that the setup process can find it. A previous poster @biophetik gave an example of how to do this.

    Also, I already had numpy installed in my virtual environment when I installed scipy. I'm not positive whether/how one depends on the other.

提交回复
热议问题