gpt4 book ai didi

Python 框架

转载 作者:太空狗 更新时间:2023-10-30 00:17:42 27 4
gpt4 key购买 nike

我有生成以下错误的 python 代码:

objc[36554]: Class TKApplication is implemented in both /Library/Frameworks/Tk.framework/Versions/8.5/Tk and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.

objc[36554]: Class TKMenu is implemented in both /Library/Frameworks/Tk.framework/Versions/8.5/Tk and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.

objc[36554]: Class TKContentView is implemented in both /Library/Frameworks/Tk.framework/Versions/8.5/Tk and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.

objc[36554]: Class TKWindow is implemented in both /Library/Frameworks/Tk.framework/Versions/8.5/Tk and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.

我的一些 Tk 扩展库正在链接/System/Library/Frameworks 而不是/Library/Frameworks正在编译,我知道 install_name_tool 工具可以将二进制文件重新链接到正确的框架,但我到底需要在终端中输入什么才能解决这个问题?

最佳答案

我不完全了解如何重新链接库,但我找到了这篇博文。那处理同样的问题。在那种情况下,一切都是由于 ActiveTcl 干扰了已经安装的系统框架。

他最终只是删除了非系统版本。这是一个极端的解决方案,但它可能会奏效。

cd /Library/Frameworks
rm -r Tk.framework
rm -r Tcl.framework

您也可以先将框架移动到其他地方以进行测试,如果您破坏了某些内容,稍后再恢复它们。

http://michaelwelburn.com/2013/06/07/python-error-conflicting-tk-libraries-and-activetcl/

关于Python 框架,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17327407/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com