【问题标题】:I got an error while running import cv2.What is the soluton?运行 import cv2 时出现错误。解决方案是什么?
【发布时间】:2019-10-28 05:39:22
【问题描述】:

Traceback(最近一次调用最后一次): 文件“”,第 1 行,在 导入简历2 ImportError: DLL 加载失败: %1 不是有效的 Win32 应用程序。

这个错误有什么解决办法?

【问题讨论】:

  • 这个问题是否重复case

标签: python opencv winapi dll cv2


【解决方案1】:

将新的opencv二进制文件路径(C:\opencv\build\bin\Release)添加到Windows PATH环境变量中,重启python。

【讨论】:

    猜你喜欢
    • 2012-05-08
    • 1970-01-01
    • 2021-10-12
    • 2019-03-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-15
    • 1970-01-01
    相关资源
    最近更新 更多