-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError on Raspberry Pi #14553
Comments
This usually indicates some incompatibility between the numpy you installed and one built specifically for your version of your OS. Did you get numpy via |
I’m not sure, but I believe I used both at one point or another while trying to fix this error. Usually it said it already met the requirements. Is there one in particular that I should use? Or would it be best to uninstall bumpy first and then use one of them? |
I have the same issue, its been 3 days it's not been solved |
We try to help, but helping with these issues is not easy, and few people here have both the bandwidth and the knowledge of compile issues to help. If you do not mind using |
Please look at gh-14455, installing that should fix the issue. |
i just tried it and got I installed it with Am i doing something wrong? I get the feeling this has something to do with the fact that I have multiple installs of Python. I'm trying to do everything with 3.7, but it seems like it all keeps defaulting to 2.7. |
I am getting the following error for
Can someone help me interpret the following ImportError.ImportError Traceback (most recent call last) /usr/local/lib/python3.7/site-packages/numpy/core/multiarray.py in /usr/local/lib/python3.7/site-packages/numpy/core/overrides.py in I tried inserting the While searching for a solution to following error, I found Kitt-AI/snowboy#262 to be a solution to my problems. ImportError: libf77blas.so.3: cannot open shared object file: No such file or directory This worked for me: I hope this helps. |
Figured it out! It turns out I had installed Python in an unofficial way: https://installvirtual.com/install-python-3-7-on-raspberry-pi/ As soon as I uninstalled and then reinstalled using |
Hi, |
All I did was use the command above on my Raspberry Pi 3. I think we’ll need more info on your issue if that doesn’t work. |
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:
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:
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.
https://github.com/numpy/numpy/issues. Please include details on:
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
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.
The text was updated successfully, but these errors were encountered: