Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 5
    "Installing numpy can be a non-trivial experience depending on your platform."...um What? Which platforms is it "non-trivial" to install numpy? What exactly made it non-trivial? Commented Nov 14, 2014 at 18:36
  • 12
    @John: hard to get a 64-bit binary for Windows. Hard to get numpy via pip on Windows. Commented Mar 6, 2015 at 2:05
  • 2
    Use numpy.isclose(a, b, rtol=1e-05, atol=1e-08, equal_nan=False).all() to get a single True/False value if the two arrays are equal. Commented Jun 21, 2020 at 18:28
  • 3
    It is extremely non-trivial to install NumPy on macOS with pip. This is thanks to Apple's blatantly broken multithreaded implementation of their Accelerate BLAS replacement, which neither NumPy or pip have control over. The only solution is to (A) force upgrade pip, setuptools, and wheel and (B) force reinstallation of NumPy with --force-reinstall. This recently brought beartype's entire CI pipeline to its knees – among others. Thanks, Apple! o_O Commented Aug 6, 2021 at 5:46