vincens@VMAC: python3 dyld: Library not loaded:/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
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.x版本。就我而言,我安装了Python3.6
和Python3.9
。 brew uninstall python3
没有完全删除Python3.6
。
通过显式运行Python3.9
而不是python3.9
,我能够从Terminal调用python3
,这使我相信该问题是由于使用Python3.x资源的含糊不清所致。
手动删除的/Library/Frameworks/Python.framework/Versions/3.6
导致Python3正常运行。
暗示:
从您的PATH环境变量中删除/Library/Frameworks/Python.framework/Versions/3.6
可能就足够了。
关于python-3.x - dyld : Library not loaded:/System/Library/Frameworks/CoreFoundation.框架/版本/A/CoreFoundation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65878141/