问题描述
引用自:/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/PythonReason: 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?
推荐答案
这对我也有同样的问题.
This worked for me with the same issue.
检查您是否安装了多个 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
从Terminal调用 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!