python - Turtle graphics on Wakari? -
i'm experimenting python running in wakari.io, , tried turtle graphics, see if module work. code
import turtle t = turtle.pen() t.forward(50) i got following error messages:
--------------------------------------------------------------------------- importerror traceback (most recent call last) <ipython-input-9-c761d5a63f4f> in <module>() ----> 1 import turtle 2 t = turtle.pen() 3 t.forward(50) /opt/anaconda/envs/np18py27-1.9/lib/python2.7/lib-tk/turtle.py in <module>() 105 #print _ver 106 --> 107 import tkinter tk 108 import types 109 import math /opt/anaconda/envs/np18py27-1.9/lib/python2.7/lib-tk/tkinter.py in <module>() 37 # attempt configure tcl/tk without requiring path 38 import fixtk ---> 39 import _tkinter # if fails python may not configured tk 40 tkinter = _tkinter # b/w compat export 41 tclerror = _tkinter.tclerror importerror: libx11.so.6: cannot open shared object file: no such file or directory how can make code work? .. thanks!
Comments
Post a Comment