缺少配置文件错误:[‘config’]。请检查OpenCV安装。

huangapple go评论147阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年3月7日 12:41:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/75658112.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定