Ask Your Question

Is it possible to use OpenCV with Python 3.7? [closed]

asked 2018-10-18 02:39:42 -0500

GEEN gravatar image

I try to use OpenCV and Phyton 3.7 but it won't work. Has anyone any hints for me? Thanks, GEEN

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by GEEN
close date 2018-10-19 01:59:21.360323


but it won't work.

(never a helpful report. be concise.)

what did you try to install it ?

should be possible

berak gravatar imageberak ( 2018-10-18 02:49:28 -0500 )edit

I followed the installation guide

There it is mentioned to copy cv2.pyd to C:/Python27/lib/site-packages.

This I did, but into the python37 directory. Then I started the IDE but the import didn't work.

I have to mention I'm totaly newbie to python and OpenCV, I'm develop up to now only the other languages.

GEEN gravatar imageGEEN ( 2018-10-18 02:53:14 -0500 )edit

ahh, i see.

iirc, the prebuilt cv2.pyd is for python 2.7 only (so, wrong version). remove it again, and try:

pip install opencv-contrib-python
berak gravatar imageberak ( 2018-10-18 03:00:43 -0500 )edit

Okay ... Thank you for the hint !!! I'l try it later, because right now I can't download it because of the firewall. I have to try it from my home pc. I'll keep you informed whether it worked out or not. Thank you again for your very fast answer! Best Geen

GEEN gravatar imageGEEN ( 2018-10-18 03:04:43 -0500 )edit

i looked it up -- indeed the buildbot is only building python2 binaries.

berak gravatar imageberak ( 2018-10-18 03:07:19 -0500 )edit

For Python 3: used pip3

pip3 install opencv-contrib-python
supra56 gravatar imagesupra56 ( 2018-10-18 07:09:41 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-10-18 12:57:37 -0500

GEEN gravatar image

Thank you berak. Your hint worked and I could install OpenCV for Pyhton. Also thanks at supra56! Now I have to do the first steps forward. Best Geen

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-10-18 02:39:42 -0500

Seen: 1,091 times

Last updated: Oct 18 '18