简体   繁体   English

带有 python 的 Openvino 返回一些错误

[英]Openvino with python is returning some error

I'm trying to run this application using openvino, but I'm getting the following error:我正在尝试使用 openvino 运行应用程序,但出现以下错误:

/usr/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.7 of module 'openvino.inference_engine.ie_api' does not match runtime version 3.6 return f(*args, **kwds) /usr/lib/python3.6/importlib/_bootstrap.py:219:RuntimeWarning:模块'openvino.inference_engine.ie_api'的编译时版本3.7与运行时版本3.6不匹配返回f(*args,**kwds)

But when I ran the application using python 3.7, I've got this error:但是当我使用 python 3.7 运行应用程序时,我遇到了这个错误:

ImportError: numpy.core.multiarray failed to import Traceback (most recent call last): File "./face_recognition_demo.py", line 24, in import cv2 ImportError: numpy.core.multiarray failed to import ImportError: numpy.core.multiarray 未能导入 Traceback(最近一次调用最后):文件“./face_recognition_demo.py”,第 24 行,在 import cv2 ImportError: numpy.core.multiarray 导入失败

Does anyone knows how to fix this?有谁知道如何解决这个问题?

Looks like that some packages in your environment are incompatible.看起来您环境中的某些软件包不兼容。 To fix this I recommend to run the sample using virtual environment.要解决此问题,我建议使用虚拟环境运行示例。 Please follow:请关注:

python3 -m venv ./virtual-env
source ./virtual-env/bin/activate
pip3 install -r requirements.txt

Then try to run the sample again.然后尝试再次运行示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM