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__)"

即可显示版本号:

相关推荐
小弟调调9 小时前
Vidwall: 支持将 4K 视频设置为动态桌面壁纸,兼容 MP4 和 MOV 格式
macos·swiftui·桌面应用·macos app
Digitally13 小时前
如何将iPhone备份到Mac/MacBook
macos·ios·iphone
瓜子三百克2 天前
CALayer的异步处理
macos·ios·cocoa
Fine姐2 天前
传感器WSNs TheDataLinkLayer——B-MAC
macos
九丝城主2 天前
2025使用VM虚拟机安装配置Macos苹果系统下Flutter开发环境保姆级教程--中篇
服务器·flutter·macos·vmware
呆萌的代Ma2 天前
解决Mac上的老版本docker desktop 无法启动/启动后一直转圈/无法登陆账号的问题
macos·docker·eureka
fengyun28912 天前
Omi录屏专家 Screen Recorder by Omi 屏幕录制Mac
macos·mac·录屏·屏幕录制
不学会Ⅳ2 天前
Mac M芯片搭建jdk源码环境(jdk24)
java·开发语言·macos
九丝城主3 天前
2025使用VM虚拟机安装配置Macos苹果系统下Flutter开发环境保姆级教程--上篇
服务器·flutter·macos·vmware
芳草萋萋鹦鹉洲哦3 天前
【vue3+tauri+rust】如何实现下载文件mac+windows
windows·macos·rust