python-3.x - ImportError:在 MacOS 上安装 Coral
问题描述
我刚刚购买了一个珊瑚 USB TPU,并按照coral.ai/docs/setup/ 上的说明将其安装在运行Big Sur 11.3 的Mac 上,但是当我运行示例代码时:
python3 examples/classify_image.py \
--model test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite \
--labels test_data/inat_bird_labels.txt \
--input test_data/parrot.jpg
我收到以下错误:
Traceback (most recent call last):
File "/Users/user/scripts/python scripts/coral/pycoral/examples/classify_image.py", line 40, in <module>
from pycoral.utils.edgetpu import make_interpreter
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pycoral/utils/edgetpu.py", line 24, in <module>
from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pycoral/pybind/_pywrap_coral.cpython-39-darwin.so, 2): Library not loaded: @rpath/libedgetpu.1.dylib
Referenced from: /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pycoral/pybind/_pywrap_coral.cpython-39-darwin.so
Reason: image not found
有没有正确安装的东西?
解决方案
推荐阅读
- python - re.sub 括号后的正则表达式 \b
- java - xml-apis 依赖项的许可证问题
- jquery - 在循环外添加 jquery 值(创建实时出价)
- ruby-on-rails - Rails API 接受具有两种有效负载的帖子
- deep-learning - 深度学习:类标签不在顺序范围内
- directx-12 - xrEndFrame 上的奇怪 OpenXR 行为
- macos - 从“macos system_profiler command”输出中获取设备类型(令牌、USB 闪存驱动器、鼠标)
- python - TfIdfVectorizer 在 GPU 上较慢(cuml 与 sklearn 实现)
- rust - 如何安全地创建一个不透明的结构,然后在 FFI 边界上释放它?
- android - 未知主机“dl.google.com”。您可能需要在 gradle un Android 4.2 中调整代理设置