Easygui. msgbox ("Hello there! ") Error: Tcl_Init error: Can't find a usable init. tcl in the following directories solution, includedirectories
Today, I learned about Parent and Child programming. When I saw the first gui running (the Code is as follows ):
1 import easygui2 easygui.msgbox("Hello there!")
The following error is reported: Tcl Init error: Can't find a usable init. tcl in the following directories. Then, tcl8.5 does not exist in many nonexistent paths.
Solution:
1. I uninstalled Python 2.7 and found that it was still the case and the reinstallation would not work.
2. Why? The Lib in the middle should be ignored. It is added after I change to it. This will not work either.
3. Finally, I:
- We found a tcl directory in Python27.
- The tcl folder contains a tcl8.5 directory.
- Copy the tcl8.5 directory under the tcl directory to D: \ files \ Python27 \ Lib, and then copy D: \ files \ Python27 \ Lib configure to the environment variable (the environment variable I previously configured is D: \ files \ Python27)
- Now, from powershell to python interaction mode, enter the previous two commands and finally pop up, haha ^_^
In addition, I have always clicked IDLE and didn't respond, so it can also run normally. I don't know whether the two have any relationship.