Can't import tkinter in python using Mac OSX 10.8.3 -
i using anaconda python package, configured tkinter.
i installed activetcl, following http://www.python.org/getit/mac/tcltk/ able import other libraries fine, run ipython etc. not tkinter in python3 or tkinter in python2. when try import tkinter 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" 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 fails python may not configured 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
Comments
Post a Comment