r/Python • • Apr 30 '18

xkcd: Python Environment

Post image
2.4k Upvotes

388 comments sorted by

View all comments

Show parent comments

2

u/lykwydchykyn Apr 30 '18

Next time I'll try macports; I think I had trouble making it work, but that was several months ago.

1

u/parkerSquare Apr 30 '18

Don't bother - use pyenv instead.

1

u/lykwydchykyn Apr 30 '18

Help me understand how I can install Tk 8.6 on macOS using pyenv? I may have missed something.

1

u/parkerSquare Apr 30 '18

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.

→ More replies (2)