SIMPLE

pyenv install 3.12実行時に発生したエラーの対処法

./Modules/_tkinter.c:692:9: error: call to undeclared function 'Tcl_AppInit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  692 |     if (Tcl_AppInit(v->interp) != TCL_OK) {
      |         ^
./Modules/_tkinter.c:692:9: note: did you mean 'Tcl_Init'?

pyenv install 3.12を実行すると上記のようなエラーが発生した。

tcl-tkが悪さをしているようなので、brew uninstall tcl-tkを実行してから、再度pyenv install 3.12を実行すると解消された。

oddy

"チーバくんの目"のあたりで暮らす、フリーランスエンジニアのoddyです。 サイト名の"OJTHON"(オジソン)の由来は、わが家での私のあだ名とプログラミング言語Python(パイソン)のもじりです。 僕たち家族の思い出と記録、そして今の僕が考えることについて、何かしらの形にして残していきたいと思い、このOJTHON.dev HOME / BLOGを作りました。