Easygui. msgbox (& quot; Hello there! & Quot;) error: Tcl_Init error: Can & #39; t find a usable init. tcl in the following directories problem solution, includedirectories

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.