I am trying to install opencv
in python
on my windows machine but I am unable to do so. I have python 2.7.11::Anaconda 2.4.1 <32-bit>
Here is what I have tried till now -
pip install cv2
on command line gives the error : could not find a version that satisfies the requirement cv2
C:\Python27\Lib\site-packages
but still it is not working. I get the following error messageImportError: No module named cv2
(I already have numpy installed and it works just fine).
pip install opencv-python
you can type this instead of
pip install cv2
it also works with anaconda pro
I was able to solve the error.
If you are using python version 3 , sometimes you have to use pip3.
pip3 install opencv-python
Make sure you are using python 3 , it won't work for python 2.
尝试
pip install opencv-python==4.3.0.36
所以我使用的是 PyCharm,对我有用的是直接从文件->设置、项目:您的项目名称->Python 解释器列表安装它
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.