Can't upgrade Scipy

后端 未结 4 920
夕颜
夕颜 2020-12-09 11:10

I\'m trying to upgrade Scipy from 0.9.0 to 0.12.0. I use the command:

sudo pip install --upgrade scipy
4条回答
  •  粉色の甜心
    2020-12-09 12:04

    I found Adam Klein's instructions for setting up scipy (and friends) in a virtual environment very useful.

    One problem I ran into (which was probably my own fault): After all was said and done, I found importing scipy still loaded version 0.9.0, not 0.12.0. The problem was that my sys.path was finding the old system version before the new version. The fix was to make

    /path/to/.virtualenvs/arthur/local/lib/python2.7/site-packages
    

    appear before

    /usr/lib/python2.7/dist-packages
    

    in sys.path. If you have virtualenvwrapper installed, then you can add the path using

    add2virtualenv /path/to/.virtualenvs/arthur/lib/python2.7/site-packages
    

提交回复
热议问题