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
基础教程推荐
- numpy float:比算术运算中内置的慢 10 倍? 2022-01-01
- 用 Python 编写 Fortran 无格式文件 2022-01-01
- 由Python将MP3转换为MIDI(类型错误:无法加载插件:mtg-Melodia:Melodia) 2022-01-01
- 与常规 dict 相比,Python manager.dict() 非常慢 2022-01-01
- 在 Celery 工作人员中捕获 Heroku SIGTERM 以优雅地关 2022-01-01
- pyserial - 可以从线程 a 写入串行端口,是否阻塞从线程 b 读取? 2022-01-01
- 尝试制作WhatsApp机器人 2022-01-01
- Discord.py 缺少必需的参数 2022-01-01
- 使用生成器和迭代器时 Python 多循环失败 2022-01-01
- 将 x 轴刻度更改为自定义字符串 2022-01-01
