Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zh-cn/latest/python/startup/build_python3_in_centos7 #41

Open
utterances-bot opened this issue Jan 25, 2024 · 5 comments
Open

zh-cn/latest/python/startup/build_python3_in_centos7 #41

utterances-bot opened this issue Jan 25, 2024 · 5 comments

Comments

@utterances-bot
Copy link

在CentOS 7环境源码编译Python 3 — Cloud Atlas beta 文档

https://cloud-atlas.readthedocs.io/zh-cn/latest/python/startup/build_python3_in_centos7.html

Copy link

winyMu commented Jan 25, 2024

“Python 3不支持 _tkinter 模块问题” 博主现在有解决么?

@huataihuang
Copy link
Owner

“Python 3不支持 _tkinter 模块问题” 博主现在有解决么?

没有解决,我没有这个需求,所以绕过去了

Copy link

pkg-config无法找到tk&tcl的头文件或者库文件,检查一下你的tk.pc或者是tcl.pc文件

Copy link

feshoo commented Apr 13, 2024

要指定环境变更 TCLTK_LIBS=,例如:
TCLTK_LIBS="-ltk8.5 -ltcl8.5" ./configure --enable-optimizations --with-lto --with-computed-gotos --with-system-ffi
--with-ensurepip=install --with-openssl=/usr/local/openssl11

Copy link

#在 RHEL 7 和 CentOS 7 上,开发包未提供 tcl.pc 和 tk.pc 文件。你需要使用以下方式设置 TCLTK_LIBS:TCLTK_LIBS="-ltk8.5 -ltkstub8.5 -ltcl8.5"。
#https://github.com/python/cpython/blob/main/Doc/whatsnew/3.11.rst#build-changes
#The necessary bits to build these optional modules were not found: _tkinter
#tk-devel-8.5.13-6.el7.x86_64
yum install tk-devel -y
export TCLTK_LIBS="-ltk8.5 -ltkstub8.5 -ltcl8.5"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants