在我更新了我的MacBook并运行了一个python程序之后,终端显示了这些错误。我怎么才能修好它?
dyld[4136]: dyld cache '/System/Library/dyld/dyld_shared_cache_x86_64h' not loaded: syscall to map cache into shared region failed
dyld[4136]: 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)
Abort trap: 6
发布于 2022-07-21 17:35:55
您需要更新Python版本以及其他依赖Python安装的包。我建议您使用HomeBrew并运行brew upgrade python
或brew upgrade
,您可能还需要在运行brew upgrade
之前通过运行xcode-select --install
来更新xcode命令行工具。
https://stackoverflow.com/questions/70718161
复制相似问题