Issue 1:
Reproducing code example:

import numpy

Error message:

I am trying to import numpy within a virtual python environment on my raspberry pi. However, each time I attempt to import numpy on my Jupiter notebook (connected via ssh) I get an import error message (apologies it’s an image, I can’t get the iPad app to copy text):

How I installed numpy

pip3 install numpy

Numpy/Python Version

Python 3.7.3

Numpy 1.18.2

Actions taken so far

I have reinstalled numpy within my virtual environment using:

pip install --upgrade --force-reinstall numpy

I have checked numpy within my non-virtualised environment and it works perfectly fine, so there’s something about my virtual environment it doesn’t like.

Can anyone see what the issue might be? Thanks in advance.

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.