opencv - 使用Python 3.8的OpenCv

标签 opencv python-3.8

OpenCv仍不兼容Python 3.8吗?我已经尝试了所有方法(google和包括[this] How to install opencv-python in python 3.8在内的多个SO帖子,但似乎不起作用。由于我能够进行pip安装而没有很多问题,因此我假设兼容性问题已解决。

我的下载尝试总是导致此:
**

C:\Users\Devansh\Downloads> pip install .\opencv_python-4.1.2.30-cp38-cp38-win_amd64.whl
Processing c:\users\devansh\downloads\opencv_python-4.1.2.30-cp38-cp38-win_amd64.whl
Requirement already satisfied: numpy>=1.17.3 in
c:\users\devansh\appdata\local\programs\python\python38\lib\site-packages (from opencv-python==4.1.2.30) (1.18.0)
Installing collected packages: opencv-python
Successfully installed opencv-python-4.1.2.30
PS C:\Users\Devansh\Downloads> python
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import cv2
Traceback (most recent call last):
File "", line 1, in ImportError: DLL load failed while importing cv2: The specified module could not be found.





**

最佳答案

OpenCV不支持Python 3.8,
根据官方文档,Python 3.7是受支持的最高版本。

您可以从此处下载Python 3.7:
https://www.python.org/downloads/release/python-377/

Python 3.7的最新错误修正版本是Python 3.7.7。

希望这可以帮助。

关于opencv - 使用Python 3.8的OpenCv,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59708112/

相关文章:

c++ - 在 Qt GUI 中显示图像序列?

c++ - OpenCV:C++ 和 C 性能比较

python - HoughLinesP 未检测到预期的线条

Matplotlib Colorbar 缺少 1 个必需的位置参数 : 'mappable'

python - 如何解决 c = cov(x, y, rowvar) RuntimeWarning : Degrees of freedom <= 0 for slice error in python 3. 8?

python - HoughCircles的'NoneType'对象不是下标错误

java - 在 Java 中使用 OpenCV 和 JavaCV

python - 使用 Python 3.8 中的赋值表达式,为什么我们需要在 `as` 中使用 `with` ?

python - 事件的 Asyncio NotImplementedError

python - 如何使用 Python 3.8 安装 TensorFlow