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
- 我如何卸载 PyTorch? 2022-01-01
- 检查具有纬度和经度的地理点是否在 shapefile 中 2022-01-01
- 我如何透明地重定向一个Python导入? 2022-01-01
- 如何使用PYSPARK从Spark获得批次行 2022-01-01
- ";find_element_by_name(';name';)";和&QOOT;FIND_ELEMENT(BY NAME,';NAME';)";之间有什么区别? 2022-01-01
- 使用公司代理使Python3.x Slack(松弛客户端) 2022-01-01
- 使用 Cython 将 Python 链接到共享库 2022-01-01
- YouTube API v3 返回截断的观看记录 2022-01-01
- CTR 中的 AES 如何用于 Python 和 PyCrypto? 2022-01-01
- 计算测试数量的Python单元测试 2022-01-01
