If you start python in the above state and import tkinter, an import error will occur. There was information about the OS version of python, but not about this combination (although it wasn't too different).
Traceback (most recent call last):
File "/var/folders/_w/52jb4hnx4hb3rv6pvdlb7gtm0000gp/T/login.py", line 2, in <module>
import tkinter as tk
File "/Users/hogehoge/.pyenv/versions/3.5.1/lib/python3.5/tkinter/__init__.py", line 35, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named '_tkinter'
%Uninstall once
$ pyenv uninstall 3.5.1
% tcl-Install tk
$ brew tap Homebrew/dupes
$ brew install tcl-tk
%Install again
$ pyenv install 3.5.1
I was able to use it safely. It seems that --with-brewed-tk is required for python installed by brew, but this time it was not necessary to specify it.
I'm addicted to \ # zlib but this is solved with xcode-select --install
Recommended Posts