Python TCL ist nicht ordnungsgemäß installiertPython

Python-Programme
Anonymous
 Python TCL ist nicht ordnungsgemäß installiert

Post by Anonymous »

Ich habe gerade Graphics.Py für Python installiert.from graphics import *

def main():
win = GraphWin("My Circle", 100, 100)
c = Circle(Point(50,50), 10)
c.draw(win)
win.getMouse() # Pause to view result
win.close() # Close window when done

main()
< /code>
Mein Interpreter hat mir diese seltsamen Informationen gegeben: < /p>
Traceback (most recent call last):
File "F:\CS 101\Python\projects\packer.py", line 8, in
from graphics import *
File "F:\CS 101\Python\lib\site-packages\graphics.py", line 168, in
_root = tk.Tk()
File "F:\CS 101\Python\lib\tkinter\__init__.py", line 1674, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
{F:\CS 101\Python\tcl\tcl8.5.9} {F:/CS 101/Python/tcl/tcl8.5} {F:/CS 101/Python/lib/tcl8.5} {F:/CS 101/lib/tcl8.5} F:/lib/tcl8.5 {F:/CS 101/library} F:/library F:/tcl8.5.2/library F:/tcl8.5.2/library

F:/CS 101/Python/tcl/tcl8.5/init.tcl: version conflict for package "Tcl": have 8.5.2, need exactly 8.5.9
version conflict for package "Tcl": have 8.5.2, need exactly 8.5.9
while executing
"package require -exact Tcl 8.5.9"
(file "F:/CS 101/Python/tcl/tcl8.5/init.tcl" line 20)
invoked from within
"source {F:/CS 101/Python/tcl/tcl8.5/init.tcl}"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list source $tclfile]"

This probably means that Tcl wasn't installed properly.
< /code>
Was bedeutet es?
Was kann ich tun?>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post