Public bug reported:

I'm on a fresh Ubuntu 26.04 install with full disk encryption via TPM
2.0.

Installing `python3` (3.14.3-0ubuntu2), `python-is-python3` and
`python3-numpy` works flawlessly.

However, when you launch the Python interpeter and type `import numpy`
I'm immediately faced with:

```
~ python
Python 3.14.4 (main, Apr  8 2026, 04:02:31) [GCC 15.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/numpy/_core/__init__.py", line 22, in 
<module>
    from . import multiarray
  File "/usr/lib/python3/dist-packages/numpy/_core/multiarray.py", line 11, in 
<module>
    from . import _multiarray_umath, overrides
ImportError: libblas.so.3: cannot open shared object file: No such file or 
directory

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 112, in <module>
    from numpy.__config__ import show_config
  File "/usr/lib/python3/dist-packages/numpy/__config__.py", line 4, in <module>
    from numpy._core._multiarray_umath import (
    ...<3 lines>...
    )
  File "/usr/lib/python3/dist-packages/numpy/_core/__init__.py", line 48, in 
<module>
    raise ImportError(msg) from exc
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.14 from "/usr/bin/python"
  * The NumPy version is: "2.3.5"

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

Original error was: libblas.so.3: cannot open shared object file: No
such file or directory


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import numpy
  File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 117, in <module>
    raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.
>>>
```

I can confirm via `apt list --installed` that `libblas3`
(3.12.1-7ubuntu1) is installed.

** Affects: numpy (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: python

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2153979

Title:
  importing numpy crashes with libblas.so.3 not found

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/numpy/+bug/2153979/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to