dyld: Library not loaded: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation(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.6
和 Python3.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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:dyld:库未加载:/System/Library/Frameworks/CoreFoundation.f


基础教程推荐
- Python kivy 入口点 inflateRest2 无法定位 libpng16-16.dll 2022-01-01
- 筛选NumPy数组 2022-01-01
- Dask.array.套用_沿_轴:由于额外的元素([1]),使用dask.array的每一行作为另一个函数的输入失败 2022-01-01
- 用于分类数据的跳跃记号标签 2022-01-01
- 在 Python 中,如果我在一个“with"中返回.块,文件还会关闭吗? 2022-01-01
- 如何在海运重新绘制中自定义标题和y标签 2022-01-01
- 何时使用 os.name、sys.platform 或 platform.system? 2022-01-01
- 如何让 python 脚本监听来自另一个脚本的输入 2022-01-01
- 线程时出现 msgbox 错误,GUI 块 2022-01-01
- 使用PyInstaller后在Windows中打开可执行文件时出错 2022-01-01