Not to start a platform war, but I feel like this is a distinctly macOS problem. I was recently testing sample code for a book that used Python 3.6, Tkinter 8.6, and cx_Freeze. Making that combination work on macOS takes stupid amounts of hacking.
Windows was somewhat less painful, and Linux worked fine with this stack using only repo packages and pip.
Making that combination work on macOS takes stupid amounts of hacking.
I'm not sure why nobody nowadays favors python installed via macports, because such combinations as you mention have worked great in my experience… even with different side-by-side versions of Python.
No, you didn't miss anything - it's my mistake. I missed your mention of Tk. Sorry. Yes, as far as I know you'll need to use brew, macports, compile yourself or something similar. However once you've got Tk installed, you should be able to use pyenv and pip to install a custom Python of your desired version, with a Python Tk wrapper, without affecting system Python. That said, this (Tk specifically) is not something I've done myself, but I can try things out on my system if you need me to.
36
u/lykwydchykyn Apr 30 '18
Not to start a platform war, but I feel like this is a distinctly macOS problem. I was recently testing sample code for a book that used Python 3.6, Tkinter 8.6, and cx_Freeze. Making that combination work on macOS takes stupid amounts of hacking.
Windows was somewhat less painful, and Linux worked fine with this stack using only repo packages and pip.