Is there a test suite for numpy / scipy?

后端 未结 2 858
花落未央
花落未央 2020-12-09 14:40

I\'m about to reinstall numpy and scipy on my Ubuntu Lucid. As these things carry quite a few dependencies, I\'m wondering if there is a comprehens

相关标签:
2条回答
  • 2020-12-09 15:17

    Yes. Both packages have a test method for this.

    import numpy
    numpy.test('full')
    
    import scipy
    scipy.test('full')
    

    Note that if you do not have nose installed, it will tell you that you need it.

    0 讨论(0)
  • 2020-12-09 15:29

    Note that binary packages for the mathematical libraries Scipy and Numpy depend on, shipped by Linux distributions, have in some cases showed to be subtly broken. Running Numpy and Scipy test suites with numpy.test() and scipy.test() is recommended, as a first step to confirm that your installation functions properly. If it doesn't, you may want to try another set of binaries if available, or buy some above-mentioned commercial packages.

    from http://www.scipy.org/Download

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