You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL:DR: If you get the Problem "ImportError: No module named cv2" or similar, it could be because your virtual enviroment does not yet have the library. you might need to install the needed libraries (opencv and numpy) locally in your virtual env. via command prompt.
I already solved this problem by myself, but since i haven't found any similar Issues in the "Issues Tab" yet, i might as well document my problem
When you create a virtual environment, your global libraries are not connected to your virtual environment setup.
So if you try to import them, they won't find the library.
My solution (i dont know if it is a particulary clean one), was to:
open the command promt
activate your virtual environment (in my case it was windows, so i typed in ".\tfod\Scripts\activate")
install the libraries locally (you need not only opencv, but also numpy because it is also used in opencv)
meaning i typed into the virtual environment command line:
pip install opencv-python
and
pip install numpy
The text was updated successfully, but these errors were encountered:
I am getting this error No module named 'numpy._utils'
I have uninstalled and then reinstalled numpy lib, but the errors are still there.
Pip list also showing I have the lib installed.
TL:DR: If you get the Problem "ImportError: No module named cv2" or similar, it could be because your virtual enviroment does not yet have the library. you might need to install the needed libraries (opencv and numpy) locally in your virtual env. via command prompt.
I already solved this problem by myself, but since i haven't found any similar Issues in the "Issues Tab" yet, i might as well document my problem
When you create a virtual environment, your global libraries are not connected to your virtual environment setup.
So if you try to import them, they won't find the library.
My solution (i dont know if it is a particulary clean one), was to:
meaning i typed into the virtual environment command line:
pip install opencv-python
and
pip install numpy
The text was updated successfully, but these errors were encountered: