dyld 缓存“/System/Library/dyld/dyld_shared_cache_x86_64h”未加载:将缓存映射到共享区域的系统调用失败

dyld cache '/System/Library/dyld/dyld_shared_cache_x86_64h' not loaded: syscall to map cache into shared region failed

我在尝试使用时遇到这个错误 python 3. 我该如何解决这个问题?

dyld[2675]: dyld cache '/System/Library/dyld/dyld_shared_cache_x86_64h' not loaded: syscall to map cache into shared region failed dyld[2675]: 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: tried: '/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation' (no such file), '/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation' (no such file)

您似乎安装了多个 Python 3,这些可能是从之前的 macOS 升级中继承下来的。如果您直接键入 /usr/bin/python3 并且没有收到错误,那么这可能是 homebrew/macports/something else 自定义安装的问题。您可以键入 which python3 以查看仅使用 python3 时默认情况下会执行的操作,但修复取决于您对系统所做的操作。查看 dyld: Library not loaded: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 以获得更多帮助。