'Issues with NumPy installation
I am on Raspberry Pi 4. Trying to run a script needing Pandas and Numpy. I am getting this error for which I have not found any reference to read and attempt to solve the issue:
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.7 from "/usr/bin/python3" * The NumPy version is: "1.21.4"
and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help.
Original error was: libf77blas.so.3: cannot open shared object file: No such file or directory
Numpy is installed. I did clean up previous installations of Numpy because was giving errors with Pandas. Not sure about what to do anymore to get Numpy and Pandas correctly installed.
The last Numpy installation I did was with python3 -m pip install numpy
I do I solve this issue?
Solution 1:[1]
Are you sure that the $PATH environment is complete? Maybe try the following:
- Find where libf77blas is located in your setup:
find / -type f -name libf77blas*.* - Add this path to your environment:
export PATH="$PATH:</path/to/libf77blas>"
Solution 2:[2]
Faced the same issue, just read from some comments. You can run these commands in conda environment and this issue will be resolved
pip uninstall -y numpy
pip uninstall -y setuptools
pip install setuptools
pip install numpy
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | agk |
| Solution 2 | Nielk |
