Closed fedeotaran closed 1 year ago
I was able to install it with this command and using pkg-config
! :D
PYTHON_CONFIGURE_OPTS="--with-tcltk-includes='$(pkg-config tk --cflags)' --with-tcltk-libs='$(pkg-config tk --libs)'" asdf install python 3.11.2
python-build 3.11.2 /Users/mitt/.asdf/installs/python/3.11.2
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.11.2.tar.xz...
-> https://www.python.org/ftp/python/3.11.2/Python-3.11.2.tar.xz
Installing Python-3.11.2...
python-build: use tcl-tk from $PYTHON_CONFIGURE_OPTS
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
Installed Python-3.11.2 to /Users/mitt/.asdf/installs/python/3.11.2
This works for me! Thanks!
Thanks man! :)
Hi, I can't install python with tkinter correctly on MacOS 13.2.1 (M2).
I successfully installed the package with homebrew:
brew install tcl-tk
No matter what I do whenever I install a version of Python 3.11.x it shows me the following error:
Installation commands I tried
asdf install python 3.11.2
asdf install python 3.11.2 --with-tcl-tk
asdf install python 3.11.2 --with-tcltk-lib=/opt/homebrew/Cellar/tcl-tk/8.6.13_2/lib
I did it on my old mac and it works perfectly (MacBook Pro 2016).
Does anyone have a clue that I may be missing to install correctly on my Mac with M2?