Reputation: 21
I am using the anaconda python package, which is configured for tkinter.
I installed ActiveTcl, following https://www.python.org/download/mac/tcltk/ I am able to import other libraries fine, run ipython etc. Just not tkinter in python3 or Tkinter in python2. When I try to import tkinter I get the following message:
Python 3.3.1 |Anaconda 1.5.1 (x86_64)| (default, Apr 25 2013, 23:10:48)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/username/anaconda/envs/py3k/lib/python3.3/tkinter/__init__.py", line 40, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: dlopen(/Users/username/anaconda/envs/py3k/lib/python3.3/lib-dynload/_tkinter.so, 2): Library not loaded: /usr/X11/lib/libX11.6.dylib
Referenced from: /Users/username/anaconda/lib/libtk8.5.dylib
Reason: image not found
Upvotes: 2
Views: 1049