-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Can't build _tkinter module using brew install on Mac OS X #93659
Comments
First, the $ brew update && brew install tcl-tk Since Python 3.11, # install pkg-config
$ brew update && brew install pkg-config
# assuming you now have pkg-config in your path, and you´ve installed the tcl-tk brew:
$ PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" ./configure
$ make |
@erlend-aasland this is great thanks. It resolved the issue with the only caveat that One question: for this to work when following the documentation, I ran the command line you provided with this in addition: The command line I ran is:
Is it ok to have such a long command line? I am asking because I would suggest this line as an update to the documentation to be able to build _tkinter. One more question, is it ok/normal for the message:
not to show after compiling It used to appear just before the message below that is not showing anymore (resolving therefore the current issue I opened):
Below the full message I get after running
One final question: how do you add color to your comments?? |
Great, so we close this issue! Glad to help 🙂
It seems like that message is only printed if there are missing modules 😆 I guess we should change that; thanks for the heads-up, I'll follow it up.
Yes. You can split it up over multiple lines to make it more readable. Here's my command line to build Python (part of my PKG_SQLITE="$PREFIX/$SQLITE/lib/pkgconfig"
PKG_TCLTK="$(brew --prefix tcl-tk)/lib/pkgconfig"
PKG_CONFIG_PATH="$PKG_SQLITE:$PKG_TCLTK:$PKG_CONFIG_PATH" \
"$TREE/configure" -C \
--prefix="$HOME/install" \
--with-openssl=$(brew --prefix openssl@3) \
CC="$CC" \
CFLAGS="$CFLAGS" \
LDFLAGS="$LDFLAGS" \
$ENABLE_OPTIMIZATIONS \
$ENABLE_LOAD_EXT \
$PYDEBUG
make $MAKE_TARGET (Most of the helper variables are set up earlier in the build script.)
That's a very good idea. There's already a PR up regarding this; you could chime in there: python/devguide#891
For the command examples in my previous post, I used three backticks fencing with the
|
@erlend-aasland great thanks very much for your help. For the markdown, I can now see that colors are rendered automatically. I believe there is no way to add colors ourselves. Yes, I created the PR you refer to. I updated it earlier today and it is not relevant anymore to this issue, but I will create a new PR, and link it to this issue for reference. |
Yeah, the colours are rendered automatically, but you've got a lot of different highlighting keywords to choose from ( |
Documentation
I am using Mac OS Catalina 10.15.7.
I am getting the following message when following the documentation here: https://devguide.python.org/setup/#install-dependencies and running
make -s -j2
I tried running
brew install python-tk
, but it didn't resolve the issue. Any ideas?PR python/devguide#893
The text was updated successfully, but these errors were encountered: