python-3.x - dyld : Library not loaded:/System/Library/Frameworks/CoreFoundation.框架/版本/A/CoreFoundation

标签 python-3.x macos pycharm

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.6Python3.9brew 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/

相关文章:

python - 控制python函数中的递归深度

ios - WKWebView在催化剂上没有上下文菜单

macos - OS X 的虚拟 HID 键盘

linux - 如何在自定义Linux(特别是树莓派)上添加启动屏幕

python - 对字符串的所有字符都为真

xcode - 有没有在 OS X Mountain Lion 上读取性能计数器?

django - 如何在pycharm中切换多个项目并运行它们?

python - PyCharm 控制台 - 没有命名的模块

python - PyCharm 从另一个项目导入

使用 ptb : Same line logged twice but only one handler added 进行 Python 日志记录