未加载库:/USR/local/opt/libpng/lib/libpng16.16.dylib

发布于 2025-02-08 01:02:39 字数 1047 浏览 2 评论 0原文

主要错误

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

灰色世界里的红玫瑰 2025-02-15 01:02:39

我想您从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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文