Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8041

Python • Re: compile python from source with tkinter support

$
0
0
have a python project that requires tkinter. I am attempting to compile python from source.

And no matter what I do, I get the following error in the configuration step:
checking for stdlib extension module _tkinter... missing

I have exhausted google and AI searches. All AI queries insist that I must not have installed "tk-dev" or "tcl-dev". I definitely have those installed. I have carefully followed the instructions on here https://docs.python.org/3/using/configu ... quirements.
Well, I reluctanctly installed python 3.14.0 (notice last figure: 0 is considered as A STABLE VERSION ) withot trouble on an external rotating USB disk, withe following histor (it took my old beloved Pi4 Bulls eye 30 minutes)

Code:

 2001  cd /media/pi/01DBA2F0BC3DD060/ 2002  wget https://www.python.org/ftp/python/3.14.0/Python-3.14.0.tar.xz 2003  tar xvf Python-3.14.0.tar.xz Python-3.14.0/ 2004  cd Python-3.14.0/ 2005  ./configure --help 2006  ./configure --prefix=/media/pi/01DBA2F0BC3DD060/local 2007  time make 2008  sudo make install clean 2009  export PATH=/media/pi/01DBA2F0BC3DD060/local/bin:$PATH 2010  which python 2011  which python3.14 2012  python3.14 2013  python3.14 --version 2014  history > pystoria
I triend to import tkinter without a glitch (I do not use tkinter, therefore i could not test deeper. Tk dev has been installed for years, and did not mess up things

Code:

 sudo apt install tk-devLecture des listes de paquets... FaitConstruction de l'arbre des dépendances... FaitLecture des informations d'état... Fait      tk-dev est déjà la version la plus récente (8.6.11+1).
B TW I was reluctant because FC43 has python3.14 and some packages need python 3.12 (3.14 is too new, ecxept for Pi). BTW number 2: I asked three AI the same prompt:

Code:

 peut on compiler python3.14 a partir des sources? Meme si tk-dev et tc-dev est installe 
All three of them understand (2 of them write) French; qwen3 max (Alibaba; chinese) said yes, but was traines in 2024 -not a reliable answer). Claude Haiku (Omericoin; often excellent) answered me intellectual garbage; Surprisingly, kimi seems to have an interestion answer (though it does not write good french, to be nice and friendly). It was recently released in China and I keep it as it is sometimes good (2 other AI can confirm -or not its solution is interesting). The command "configure --help" is superior to AIs and google search, IMO

Statistics: Posted by dbrion1 — Sun Jan 04, 2026 3:09 pm



Viewing all articles
Browse latest Browse all 8041

Trending Articles