47 lines
1.8 KiB
Markdown
47 lines
1.8 KiB
Markdown
|
```
|
||
|
pip install numpy tensorflow
|
||
|
```
|
||
|
|
||
|
`main.py` didnt run due to `NumPy` import issue. The error is given below :
|
||
|
```
|
||
|
Traceback (most recent call last):
|
||
|
File "/home/hdmtp/Image_recog/venv/lib/python3.10/site-packages/numpy/core/__init__.py", line 23, in <module>
|
||
|
from . import multiarray
|
||
|
File "/home/hdmtp/Image_recog/venv/lib/python3.10/site-packages/numpy/core/multiarray.py", line 10, in <module>
|
||
|
from . import overrides
|
||
|
File "/home/hdmtp/Image_recog/venv/lib/python3.10/site-packages/numpy/core/overrides.py", line 6, in <module>
|
||
|
from numpy.core._multiarray_umath import (
|
||
|
ImportError: libz.so.1: 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 "/home/hdmtp/Image_recog/main.py", line 1, in <module>
|
||
|
import numpy as np
|
||
|
File "/home/hdmtp/Image_recog/venv/lib/python3.10/site-packages/numpy/__init__.py", line 141, in <module>
|
||
|
from . import core
|
||
|
File "/home/hdmtp/Image_recog/venv/lib/python3.10/site-packages/numpy/core/__init__.py", line 49, in <module>
|
||
|
raise ImportError(msg)
|
||
|
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.10 from "/home/hdmtp/Image_recog/venv/bin/python3"
|
||
|
* The NumPy version is: "1.24.2"
|
||
|
|
||
|
and make sure that they are the versions you expect.
|
||
|
Please carefully study the documentation linked above for further help.
|
||
|
|
||
|
Original error was: libz.so.1: cannot open shared object file: No such file or directory
|
||
|
```
|