#๐Ÿ”’ No module 'cv2' confusion

23 messages ยท Page 1 of 1 (latest)

deep geode
#

Im tying to use the mitdeeplearning library & tensorflow library, which also uses cv2 while operating however Ive tried installing cv2 seperately but it doesnt work. I dont really know what to do anymore.

  File "c:\Users\minua\Downloads\playroom.py", line 2, in <module>
    import mitdeeplearning as mdl
  File "C:\Users\minua\anaconda3\Lib\site-packages\mitdeeplearning\__init__.py", line 4, in <module>
    import mitdeeplearning.lab2
  File "C:\Users\minua\anaconda3\Lib\site-packages\mitdeeplearning\lab2.py", line 1, in <module>
    import cv2
ModuleNotFoundError: No module named 'cv2'```
deft basinBOT
#

@deep geode

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

glossy sentinel
#

install it.

#

that'll do

#

and btw install it with anaconda as it's seems it's your package manager not with pip which is what I actually sent you

deep geode
#

so do you want me to go on the anaconda interface and install opencv

#

or use the link you sent me and put it in path

glossy sentinel
#

Yes, it's telling you cv2 is not installed

glossy sentinel
#

Was It 'conda install opencv-python' the command for installing that in Anaconda3?

#

Don't quite remember

deep geode
#

i dont actually know

#

lmao

#

I only installed conda fairly recently to run vsc

rigid rune
#

The command for installing opencv is pip install opencv-python or the anaconda equivalent.

#

Not pip install cv2

deep geode
# rigid rune The command for installing opencv is `pip install opencv-python` or the anaconda...
    import mitdeeplearning as mdl
  File "C:\Users\minua\anaconda3\Lib\site-packages\mitdeeplearning\__init__.py", line 4, in <module>
    import mitdeeplearning.lab2
  File "C:\Users\minua\anaconda3\Lib\site-packages\mitdeeplearning\lab2.py", line 7, in <module>
    import h5py
  File "C:\Users\minua\anaconda3\Lib\site-packages\h5py\__init__.py", line 25, in <module>
    from . import _errors
ImportError: DLL load failed while importing _errors: The specified procedure could not be found.```
#

as a follow up, I get this error

#

when i know ive installed the mitdeeplearning library to anaconda

deft basinBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.