英文:
import cv2 error 'missing configuration file: ['config']. Check Opencv installation'
问题
I should note I'm using an IDE (Repl.it)
in python shell i did:
pip3 install python-opencv.
This worked and seemed to install opencv.
However, import cv2
returns:
Open CV loader: missing configuration file: ['config.py']. Check OpenCV installation
pip install python-opencv
does not work.
Tried to reinstall opencv using pip3, i've got:
error occurred during configuration: option use-feature: invalid choice: 'content-addressable-pool' (choose from 'fast-deps', 'truststore', 'no-binary-enable-wheel-cache')
I was hoping to simply install opencv.
英文:
I should note I'm using an IDE (Repl.it)
in python shell i did:
pip3 install python-opencv.
This worked and seemed to install opencv.
However, import cv2
returns:
Open CV loader: missing configuration file: ['config.py']. Check OpenCV installation
pip install python-opencv
does not work.
Tried to reinstall opencv using pip3, i've got:
error occurred during configuration: option use-feature: invalid choice: 'content-addressable-pool' (choose from 'fast-deps', 'truststore', 'no-binary-enable-wheel-cache')
I was hoping to simply install opencv.
答案1
得分: 1
更新OpenCV到版本23.0对我有用。
英文:
Updating opencv to verson 23.0 worked for me
答案2
得分: 0
尝试使用 pip install opencv-python
安装 OpenCV,而不是 python-opencv
,这应该有效。
英文:
To install opencv, try using pip install opencv-python
instead of python-opencv
, it should work.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论