I'm currently trying to get the cv2 library on python so I could play some videos using python. Whenever I try to install cv2 from pycharm I get this error:
Collecting cv2
Could not find a version that satisfies the requirement cv2 (from versions: )
No matching distribution found for cv2
I looked around and read that I should install opencv-python
using pip, and I did, but pycharm still does not recognise cv2.
It works for me here. I just downloaded PyCharm 2018.1, created a new project using Python 3.6 and virtualenv, then navigated to the project settings and installed opencv-python
using the PyCharm package manager
I then had to restart the python console in PyCharm and I could successfully import cv2
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.