Upgrade to numpy 1.8.0 on Ubuntu 12.04

后端 未结 2 492
梦毁少年i
梦毁少年i 2020-12-30 03:22

I\'m running Ubuntu 12.04 which comes by default with NumPy 1.6.0 (I have, actually had, Python 2.7.3 installed). As a result of the answe

相关标签:
2条回答
  • 2020-12-30 03:56

    Ok, so I tried:

    pip uninstall numpy
    

    which returned:

    Successfully uninstalled numpy
    

    So then I did:

    pip install numpy
    

    but it said:

    Requirement already satisfied (use --upgrade to upgrade): numpy in /home/gabriel/.local/lib/python2.7/site-packages
    Cleaning up...
    

    so apparently it was still there. I removed the contents of that folder and then I simply did:

    sudo pip install numpy
    

    This worked like freaking magic. Now I have NumPy 1.8.0, SciPy 0.12.0, Matplotlib 1.2.1 installed and everything is running like it should.

    0 讨论(0)
  • 2020-12-30 04:21
    sudo pip install numpy --upgrade
    

    will do the same thing with slightly less effort.

    0 讨论(0)
提交回复
热议问题