Ask coding questions

← Back to all posts
How To Import CV2
[deleted]

Does anyone know how to import cv2 into Python on repl.it? I can’t find any module named cv, cv2, or opencv-python, and creating a requirements.txt file shows an error.

Is there any way to do this?

Answered by PattanAhmed [earned 5 cycles]
View Answer
Comments
hotnewtop
PattanAhmed

@LoveTheBears1O1 Hi,
To import, use this command
Code:-

That's it.
Thanks!

Hope this helps

CodingCactus

I have moved this to the ask board as it is a question and not a jam submission.

hg0428

This is not the right section to put a question like this. Put it in the ask section. Why did you put it in the jam section?

[deleted]

@hg0428 This is in the ask section.

hg0428

Now it is, @CodingCactus moved it.
@LoveTheBears1O1

[deleted]

@hg0428 oh oops i must have clicked the wrong category! Thanks for moving it @CodingCactus

[deleted]

EDIT: import opencv-python worked :)