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

前端 未结 9 1688
天涯浪人
天涯浪人 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:57

    On Mavericks the following works (might also work on other versions):

    If you haven't already, install pip

    sudo easy_install pip
    

    Then install/update scipy

    sudo pip install scipy -U
    

    For some reason pip installs scipy to

    /Library/Python/2.7/site-packages/
    

    and does not remove the older version in

    /System/Library/Frameworks/Python.framework/Versions/2.7//Extras/lib/python/scipy/
    

    So just remove the old version and it works. Print the version number:

    python -c "import scipy; print scipy.__version__"
    

提交回复
热议问题