未加载库:/USR/local/opt/libpng/lib/libpng16.16.dylib
主要错误
Process failed:
dyld[29269]: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib
Referenced from: /Users/hanbing/opt/anaconda3/envs/brainreg/lib/python3.9/site-packages/brainreg/bin/nifty_reg/osX/reg_aladin
Reason: tried: '/usr/local/opt/libpng/lib/libpng16.16.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/libpng16.16.dylib' (no such file), '/usr/lib/libpng16.16.dylib' (no such file), '/opt/homebrew/Cellar/libpng/1.6.37/lib/libpng16.16.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/libpng16.16.dylib' (no such file), '/usr/lib/libpng16.16.dylib' (no such file)
尝试
brew install libpng $ brew update $ brew升级libpng
。他们都没有工作。
笔记本电脑信息:
- OS:MACOS,M1 CPU
- 版本:12.0.1
- 硬件规格:1 TB闪存存储和外部 2TB USB磁盘
- Python版本:3.9
谢谢!
Main error
Process failed:
dyld[29269]: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib
Referenced from: /Users/hanbing/opt/anaconda3/envs/brainreg/lib/python3.9/site-packages/brainreg/bin/nifty_reg/osX/reg_aladin
Reason: tried: '/usr/local/opt/libpng/lib/libpng16.16.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/libpng16.16.dylib' (no such file), '/usr/lib/libpng16.16.dylib' (no such file), '/opt/homebrew/Cellar/libpng/1.6.37/lib/libpng16.16.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/libpng16.16.dylib' (no such file), '/usr/lib/libpng16.16.dylib' (no such file)
Tried
brew install libpng $ brew update $ brew upgrade libpng
. None of them work.
Laptop information:
- OS: macOS, M1 CPU
- Version: 12.0.1
- Hardware specs: 1 TB flash storage and external
2TB USB DISK - Python version: 3.9
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想您从Intel Mac迁移到M1 Mac。升级后,Mac版本也可能会遇到一些LIBS错误。
这是因为Brew安装了一些LIB,也许可以使用编译源代码作为二进制文件,此文件仅适用于特定平台。
也许您可以重新安装它,
brew重新安装libpng
。I guess you migrate from an Intel Mac to M1 Mac. After upgrade Mac version also can meet some libs error.
This is because brew install some libs maybe using compile source code as binary file, this file only works to specific platform.
Maybe you can reinstall it,
brew reinstall libpng
.