dyld:库未加载:/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation [英] dyld: Library not loaded: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

查看:130
本文介绍了dyld:库未加载:/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

vincens@VMAC: python3dyld:图书馆没有已加载:/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

vincens@VMAC: python3 dyld: Library not loaded:/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

引用自:/Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python原因:找不到图片[1] 25278 中止python3

Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python Reason: image not found [1] 25278 abort python3

当我将我的 Mac 更新到最新版本时,没有使用 python3 env.我该如何解决?

python3 env is not used when I update my Mac to the latest version. How can I solve it?

推荐答案

这对我有同样的问题.

检查您是否安装了多个 Python3.x 版本.就我而言,我安装了 Python3.6Python3.9.brew uninstall python3 没有完全删除 Python3.6.

Check if you have multiple Python3.x versions installed. In my case I had Python3.6 and Python3.9 installed. brew uninstall python3 did not remove Python3.6 completely.

我能够通过显式运行 python3.9 而不是 python3 从终端调用 Python3.9,这让我相信问题是由使用 Python3.x 资源的歧义引起的.

I was able to call Python3.9 from Terminal by explicitly running python3.9 instead of python3, which led me to believe the issue was caused by ambiguity in which Python3.x resource was to be used.

手动删除 /Library/Frameworks/Python.framework/Versions/3.6 导致 Python3 按预期运行.

Manually deleted /Library/Frameworks/Python.framework/Versions/3.6 resulted in Python3 running as expected.

提示:从 PATH 环境变量中删除 /Library/Frameworks/Python.framework/Versions/3.6 可能就足够了.

hint: It may be sufficient to remove /Library/Frameworks/Python.framework/Versions/3.6 from your PATH environment variable.

这篇关于dyld:库未加载:/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆