mac安装open3d时候出现错误

在测试open3d是否正常顺利安装时,出现了如下错误:

bash 复制代码
python -c "import open3d as o3d; print(o3d.__version__)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/huangzhe/miniconda3/envs/open3d/lib/python3.8/site-packages/open3d/__init__.py", line 93, in <module>
    from open3d.cpu.pybind import (core, camera, data, geometry, io, pipelines,
ImportError: dlopen(/Users/huangzhe/miniconda3/envs/open3d/lib/python3.8/site-packages/open3d/cpu/pybind.cpython-38-darwin.so, 0x0002): Library not loaded: /opt/homebrew/opt/libomp/lib/libomp.dylib
  Referenced from: <A2C68595-9594-3758-BEFB-86BA2C701093> /Users/huangzhe/miniconda3/envs/open3d/lib/python3.8/site-packages/open3d/cpu/pybind.cpython-38-darwin.so
  Reason: tried: '/opt/homebrew/opt/libomp/lib/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/libomp/lib/libomp.dylib' (no such file), '/opt/homebrew/opt/libomp/lib/libomp.dylib' (no such file), '/usr/local/lib/libomp.dylib' (no such file), '/usr/lib/libomp.dylib' (no such file, not in dyld cache)

解决方法是运行如下命令:

bash 复制代码
brew install --build-from-source libomp

问题即可解决,再运行测试open3d版本号的命令:

bash 复制代码
python3 -c "import open3d as o3d; print(o3d.__version__)"

即可显示版本号:

相关推荐
吴佳浩2 天前
OpenClaw macOS 完整安装与本地模型配置教程(实战版)
人工智能·macos·agent
vi_h5 天前
在 macOS 上通过 Docker 安装并运行 Ollama(详细可执行教程)
macos·docker·ollama
pe7er11 天前
macOS 应用无法打开(权限问题)解决方案
macos·mac
harmful_sheep13 天前
mac生效的终端查看
macos
iOS门童14 天前
macOS 应用"已损坏"无法打开?一文搞懂 Gatekeeper 与解决方案
macos
NPE~14 天前
[工具分享]Maccy —— 优雅的 macOS 剪贴板历史管理工具
macos·教程·工具·实用工具
差不多程序员14 天前
Mac安装OpenClaw-cn保姆级教程
macos
dzl8439414 天前
mac 安装python
开发语言·python·macos
Bruce_Liuxiaowei14 天前
在 macOS 上通过 Docker 本地安装 OpenClaw 完整教程
macos·docker·容器·openclaw
阿捏利14 天前
详解Mach-O(十五)Mach-O __DATA_CONST
macos·ios·c/c++·mach-o