user interface - Why is my python installation not working properly? -
at first python working fine tkinter. when change working directory, somehow stops working then. manages refer tkinter.py file in directory when never typed name of file there. wanted import tkinter. tkinter.py file not working though same first 10 lines. how fix problem? reinstalled os , python yesterday, running os x 10.10.3 , newest python 3.4.3. here's tkinter.py:
you have file named tkinter.py in /users/nikolas/documents/python/tkinter.py. changing directory , importing tkinter import local file, not 1 python installation. see error because tkinter.py file not provide tk.
the solution rename file other tkinter.py.
Comments
Post a Comment