0

我正在尝试使用自定义TckTk安装从源代码构建 Python。到目前为止,我发现我需要configure使用--with-tcltk-includesand运行--with-tcltk-libs

configure --prefix='foo' --with-tcltk-includes="-I/mytcltk/include" --with-tcltk-libs="-L/mytcltk/lib -tcl8.6 -ltk8.6"

我也相应地设置CPPFLAGSLDFLAGS

LDFLAGS = "-L/mytcltk/lib"
CPPFLAGS = "-I/mytcltk/include"

当我在编译后尝试导入它时,它说它无法构建:

Failed to built these modules:
_tkinter
4

0 回答 0