首页 > 解决方案 > ImportError:使用 Python 库时找不到图像--pymrmr

问题描述

我想使用 Python 库 --- pymrmr。安装后,导入时出现 ImportError:

import pymrmr

ImportError:dlopen(/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymrmr.cpython-36m-darwin.so,2):库未加载:/usr/local/opt /libiomp/lib/libiomp5.dylib
引用自:/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymrmr.cpython-36m-darwin.so 原因:找不到图像

我尝试了一些解决方案:

brew install libomp

brew install llvm

但没有一个适合我。

我发现类别----/usr/local/opt/libiomp/不存在

只有这个目录存在-----/usr/local/opt/libomp/lib/libomp.dylib

这里有什么问题吗?</p>

希望大家可以给我意见。

提前致谢!

标签: pythonopenmpllvm

解决方案


推荐阅读