Issue 1:
Impossible to import numpy

Reproducing code example:

import numpy

Error message:

Traceback (most recent call last):

File "/home/pi/.pyenv/versions/3.7.4/lib/python3.7/site-packages/numpy/core/init.py", line 17, in

from . import multiarray

File "/home/pi/.pyenv/versions/3.7.4/lib/python3.7/site-packages/numpy/core/multiarray.py", line 14, in

from . import overrides

File "/home/pi/.pyenv/versions/3.7.4/lib/python3.7/site-packages/numpy/core/overrides.py", line 7, in

from numpy.core._multiarray_umath import (

ImportError: libf77blas.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 "", line 1, in

File "/home/pi/.pyenv/versions/3.7.4/lib/python3.7/site-packages/numpy/init.py", line 142, in

from . import core

File "/home/pi/.pyenv/versions/3.7.4/lib/python3.7/site-packages/numpy/core/init.py", line 47, in

raise ImportError(msg)

ImportError:

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

Importing the numpy c-extensions failed.

Try uninstalling and reinstalling numpy.

If you have already done that, then:

Check that you expected to use Python3.7 from "/home/pi/.pyenv/versions/3.7.4/bin/python",

and that you have no directories in your PATH or PYTHONPATH that can

interfere with the Python and numpy version "1.17.2" you're trying to use.

If (1) looks fine, you can open a new issue at

https://github.com/numpy/numpy/issues. Please include details on:

how you installed Python

how you installed numpy

your operating system

whether or not you have multiple versions of Python installed

if you built from source, your compiler versions and ideally a build log

If you're working with a numpy git repository, try git clean -xdf

(removes all files not under version control) and rebuild numpy.

Note: this error has many possible causes, so please don't comment on

an existing issue about this - open a new one instead.

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

Numpy/Python version information:

Python 3.7.4

numpy-1.17.2

Additional details

Python was installed through pyenv

numpy was installed through pip

Raspbian GNU/Linux 9 (stretch)

The only other version of Python installed is 2.7.13

Issue 2:
When i try to run a python script that uses numpy, i receive the following error:

ImportError: Unable to import required dependencies.

...

Original error was: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27' not found (required by /usr/local/lib/python3.7/site-packages/numpy/core/_multiarray_umath.cpython-37m-arm-linux-gnueabihf.so)"

Reproducing code example:

Can be reproduced simply with this:

import numpy as np

Error message:

_Traceback (most recent call last):

File "<pyshell#0>", line 1, in

import numpy

File "/usr/local/lib/python3.7/site-packages/numpy/init.py", line 142, in

from . import core

File "/usr/local/lib/python3.7/site-packages/numpy/core/init.py", line 47, in

raise ImportError(msg)

ImportError:

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

Importing the numpy c-extensions failed.

Try uninstalling and reinstalling numpy.

If you have already done that, then:

Check that you expected to use Python3.7 from "/usr/local/bin/python3.7",

and that you have no directories in your PATH or PYTHONPATH that can

interfere with the Python and numpy version "1.17.2" you're trying to use.

If (1) looks fine, you can open a new issue at

https://github.com/numpy/numpy/issues. Please include details on:

how you installed Python

how you installed numpy

your operating system

whether or not you have multiple versions of Python installed

if you built from source, your compiler versions and ideally a build log

If you're working with a numpy git repository, try git clean -xdf

(removes all files not under version control) and rebuild numpy.

Note: this error has many possible causes, so please don't comment on

an existing issue about this - open a new one instead.

Original error was: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27' not found (required by /usr/local/lib/python3.7/site-packages/numpy/core/multiarray_umath.cpython-37m-arm-linux-gnueabihf.so)

Numpy/Python version information:

Unable to run the recommended command, but here is what I know about the version info:

Python is 3.7 (if I import numpy on 3.5 or 2.7 it works)

numpy is 1.17.2

Additional Info

- how you installed Python: I'm sorry I don't remember how or know how to find out.
- how you installed numpy: tried several ways, the most recent being `sudo pip3.7 install numpy`
- your operating system: Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
- whether or not you have multiple versions of Python installed: 2.7, 3.5, 3.7 Possibly others, I'm not sure how to tell.
- if you built from source, your compiler versions and ideally a build log: Not sure where to grab this.

I should note that I first received this error and got "libf77blas.so.3...no such file" for the "Original error" section. I made it past that by installing some dependencies from here: https://stackoverflow.com/questions/53347759/importerror-libcblas-so-3-cannot-open-shared-object-file-no-such-file-or-dire

I apologize for the lack of details. I'm new to Linux and relatively new to Python, but I'll happily gather anything else that's needed if you can point me in the right direction.