<p dir="auto">I recently installed numpy on RPI Zero running Python3.9. Upon trying to run <code class="notranslate">#import numpy</code> I get the error that <code class="notranslate">libcblas.so.3</code> is missing:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;/usr/local/lib/python3.9/dist-packages/numpy/core/__init__.py&quot;, line 23, in &lt;module&gt;
    from . import multiarray
  File &quot;/usr/local/lib/python3.9/dist-packages/numpy/core/multiarray.py&quot;, line 10, in &lt;module&gt;
    from . import overrides
  File &quot;/usr/local/lib/python3.9/dist-packages/numpy/core/overrides.py&quot;, line 6, in &lt;module&gt;
    from numpy.core._multiarray_umath import (
ImportError: libcblas.so.3: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File &quot;/home/pi/code/plotly/plot.py&quot;, line 2, in &lt;module&gt;
    import numpy as np
  File &quot;/usr/local/lib/python3.9/dist-packages/numpy/__init__.py&quot;, line 140, in &lt;module&gt;
    from . import core
  File &quot;/usr/local/lib/python3.9/dist-packages/numpy/core/__init__.py&quot;, line 49, in &lt;module&gt;
    raise ImportError(msg)
ImportError: 

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.9 from &quot;/usr/bin/python3&quot;
  * The NumPy version is: &quot;1.23.4&quot;

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: libcblas.so.3: cannot open shared object file: No such file or directory"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/numpy/core/__init__.py", line 23, in &lt;module&gt;
    from . import multiarray
  File "/usr/local/lib/python3.9/dist-packages/numpy/core/multiarray.py", line 10, in &lt;module&gt;
    from . import overrides
  File "/usr/local/lib/python3.9/dist-packages/numpy/core/overrides.py", line 6, in &lt;module&gt;
    from numpy.core._multiarray_umath import (
ImportError: libcblas.so.3: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/code/plotly/plot.py", line 2, in &lt;module&gt;
    import numpy as np
  File "/usr/local/lib/python3.9/dist-packages/numpy/__init__.py", line 140, in &lt;module&gt;
    from . import core
  File "/usr/local/lib/python3.9/dist-packages/numpy/core/__init__.py", line 49, in &lt;module&gt;
    raise ImportError(msg)
ImportError: 

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.9 from "/usr/bin/python3"
  * The NumPy version is: "1.23.4"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: libcblas.so.3: cannot open shared object file: No such file or directory
</code></pre></div>
<p dir="auto">It seems a required package for numpy doesn't get installed by default. I was able to get my import command to succeed by installing this package: <code class="notranslate">sudo apt-get install libatlas-base-dev</code>. Shouldn't this dependency automatically get installed or at least flagged from a <code class="notranslate">python3 -m pip install numpy</code>command?</p>
<p dir="auto">I'm using a Raspberry Pi Zero W and I am running Raspian Stretch Lite, released 2018-04-18, with update and dist-upgrade (on 17 May 2018). In python3 I've tried:</p>
<blockquote>
<p dir="auto">pip3 install numpy<br>
which installed 1.14.3. When I import numpy in python3 it reports that it cannot file "libf77blas.so.3". numpy 1.12.1 works.</p>
</blockquote>
<p dir="auto">Didn't find any other comments on this, sorry if it is a duplicate.</p>