Python IDLE not opening due to Tcl/tk error












-1















I have just installed the latest version of Python 3.6.5 from python.org. I am using 64 bit Windows 8.1 .Earlier it was showing all kinds of .DLL errors, I tried installing all the updates and C++ Redistributable but nothing happened, then I manually downloaded all different DLL's and pasted them in the System-32 folder. By doing that the python command shell did start working but as soon as I try to open the IDLE, nothing happens, no error message is shown and nothing pops up on the monitor.
I read a lot of answers on the net and when I tried writing "import tkinter" in the python command shell it shows that the module not found and this message also - " import _tkinter # If this fails your python may not be configured for Tk" .
Please resolve this issue.










share|improve this question

























  • Why would C++ have anything to do with python? It sounds like you need to download the latest python release and reinstall. The tkinter library comes with the windows distro for python. You should provide the actually trackback error you are receiving.

    – Mike - SMT
    Apr 19 '18 at 13:48













  • If you tried to start IDLE from a Command Prompt command line, you would see the import error. Since IDLE uses tkinter, which uses _tkinter (the C coded bridge to tcl/tk), it fails immediately.

    – Terry Jan Reedy
    Apr 20 '18 at 6:59
















-1















I have just installed the latest version of Python 3.6.5 from python.org. I am using 64 bit Windows 8.1 .Earlier it was showing all kinds of .DLL errors, I tried installing all the updates and C++ Redistributable but nothing happened, then I manually downloaded all different DLL's and pasted them in the System-32 folder. By doing that the python command shell did start working but as soon as I try to open the IDLE, nothing happens, no error message is shown and nothing pops up on the monitor.
I read a lot of answers on the net and when I tried writing "import tkinter" in the python command shell it shows that the module not found and this message also - " import _tkinter # If this fails your python may not be configured for Tk" .
Please resolve this issue.










share|improve this question

























  • Why would C++ have anything to do with python? It sounds like you need to download the latest python release and reinstall. The tkinter library comes with the windows distro for python. You should provide the actually trackback error you are receiving.

    – Mike - SMT
    Apr 19 '18 at 13:48













  • If you tried to start IDLE from a Command Prompt command line, you would see the import error. Since IDLE uses tkinter, which uses _tkinter (the C coded bridge to tcl/tk), it fails immediately.

    – Terry Jan Reedy
    Apr 20 '18 at 6:59














-1












-1








-1








I have just installed the latest version of Python 3.6.5 from python.org. I am using 64 bit Windows 8.1 .Earlier it was showing all kinds of .DLL errors, I tried installing all the updates and C++ Redistributable but nothing happened, then I manually downloaded all different DLL's and pasted them in the System-32 folder. By doing that the python command shell did start working but as soon as I try to open the IDLE, nothing happens, no error message is shown and nothing pops up on the monitor.
I read a lot of answers on the net and when I tried writing "import tkinter" in the python command shell it shows that the module not found and this message also - " import _tkinter # If this fails your python may not be configured for Tk" .
Please resolve this issue.










share|improve this question
















I have just installed the latest version of Python 3.6.5 from python.org. I am using 64 bit Windows 8.1 .Earlier it was showing all kinds of .DLL errors, I tried installing all the updates and C++ Redistributable but nothing happened, then I manually downloaded all different DLL's and pasted them in the System-32 folder. By doing that the python command shell did start working but as soon as I try to open the IDLE, nothing happens, no error message is shown and nothing pops up on the monitor.
I read a lot of answers on the net and when I tried writing "import tkinter" in the python command shell it shows that the module not found and this message also - " import _tkinter # If this fails your python may not be configured for Tk" .
Please resolve this issue.







python python-3.x tkinter python-idle






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 '18 at 8:14









Philip

1,044818




1,044818










asked Apr 19 '18 at 13:37









Ashish SangwanAshish Sangwan

62




62













  • Why would C++ have anything to do with python? It sounds like you need to download the latest python release and reinstall. The tkinter library comes with the windows distro for python. You should provide the actually trackback error you are receiving.

    – Mike - SMT
    Apr 19 '18 at 13:48













  • If you tried to start IDLE from a Command Prompt command line, you would see the import error. Since IDLE uses tkinter, which uses _tkinter (the C coded bridge to tcl/tk), it fails immediately.

    – Terry Jan Reedy
    Apr 20 '18 at 6:59



















  • Why would C++ have anything to do with python? It sounds like you need to download the latest python release and reinstall. The tkinter library comes with the windows distro for python. You should provide the actually trackback error you are receiving.

    – Mike - SMT
    Apr 19 '18 at 13:48













  • If you tried to start IDLE from a Command Prompt command line, you would see the import error. Since IDLE uses tkinter, which uses _tkinter (the C coded bridge to tcl/tk), it fails immediately.

    – Terry Jan Reedy
    Apr 20 '18 at 6:59

















Why would C++ have anything to do with python? It sounds like you need to download the latest python release and reinstall. The tkinter library comes with the windows distro for python. You should provide the actually trackback error you are receiving.

– Mike - SMT
Apr 19 '18 at 13:48







Why would C++ have anything to do with python? It sounds like you need to download the latest python release and reinstall. The tkinter library comes with the windows distro for python. You should provide the actually trackback error you are receiving.

– Mike - SMT
Apr 19 '18 at 13:48















If you tried to start IDLE from a Command Prompt command line, you would see the import error. Since IDLE uses tkinter, which uses _tkinter (the C coded bridge to tcl/tk), it fails immediately.

– Terry Jan Reedy
Apr 20 '18 at 6:59





If you tried to start IDLE from a Command Prompt command line, you would see the import error. Since IDLE uses tkinter, which uses _tkinter (the C coded bridge to tcl/tk), it fails immediately.

– Terry Jan Reedy
Apr 20 '18 at 6:59












1 Answer
1






active

oldest

votes


















0














If you did not have the C runtime (CRT...) .dll MS Visual C++ applications compiled with VS2015 or VS2017, including Python since 3.5, it is very likely because you turned off automatic Windows updates. If you got interactive Python working, you must have gotten the right one installed.



If _tkinter is not installed, it must be because the box for optionally installing tcl/tk, _tkinter, tkinter, and IDLE was not checked when you said 'install'. If you still have the installation file where it was when you ran it, you can go to the Control Panel installed programs dialog, click on 3.6.5, and ask to 'Repair'. You should be able to add the needed checkmark. Otherwise rerun or redownload the file from python.org.



If you need further help with installation questions, the python.org python-list is sometimes a better forum.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f49922530%2fpython-idle-not-opening-due-to-tcl-tk-error%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    If you did not have the C runtime (CRT...) .dll MS Visual C++ applications compiled with VS2015 or VS2017, including Python since 3.5, it is very likely because you turned off automatic Windows updates. If you got interactive Python working, you must have gotten the right one installed.



    If _tkinter is not installed, it must be because the box for optionally installing tcl/tk, _tkinter, tkinter, and IDLE was not checked when you said 'install'. If you still have the installation file where it was when you ran it, you can go to the Control Panel installed programs dialog, click on 3.6.5, and ask to 'Repair'. You should be able to add the needed checkmark. Otherwise rerun or redownload the file from python.org.



    If you need further help with installation questions, the python.org python-list is sometimes a better forum.






    share|improve this answer




























      0














      If you did not have the C runtime (CRT...) .dll MS Visual C++ applications compiled with VS2015 or VS2017, including Python since 3.5, it is very likely because you turned off automatic Windows updates. If you got interactive Python working, you must have gotten the right one installed.



      If _tkinter is not installed, it must be because the box for optionally installing tcl/tk, _tkinter, tkinter, and IDLE was not checked when you said 'install'. If you still have the installation file where it was when you ran it, you can go to the Control Panel installed programs dialog, click on 3.6.5, and ask to 'Repair'. You should be able to add the needed checkmark. Otherwise rerun or redownload the file from python.org.



      If you need further help with installation questions, the python.org python-list is sometimes a better forum.






      share|improve this answer


























        0












        0








        0







        If you did not have the C runtime (CRT...) .dll MS Visual C++ applications compiled with VS2015 or VS2017, including Python since 3.5, it is very likely because you turned off automatic Windows updates. If you got interactive Python working, you must have gotten the right one installed.



        If _tkinter is not installed, it must be because the box for optionally installing tcl/tk, _tkinter, tkinter, and IDLE was not checked when you said 'install'. If you still have the installation file where it was when you ran it, you can go to the Control Panel installed programs dialog, click on 3.6.5, and ask to 'Repair'. You should be able to add the needed checkmark. Otherwise rerun or redownload the file from python.org.



        If you need further help with installation questions, the python.org python-list is sometimes a better forum.






        share|improve this answer













        If you did not have the C runtime (CRT...) .dll MS Visual C++ applications compiled with VS2015 or VS2017, including Python since 3.5, it is very likely because you turned off automatic Windows updates. If you got interactive Python working, you must have gotten the right one installed.



        If _tkinter is not installed, it must be because the box for optionally installing tcl/tk, _tkinter, tkinter, and IDLE was not checked when you said 'install'. If you still have the installation file where it was when you ran it, you can go to the Control Panel installed programs dialog, click on 3.6.5, and ask to 'Repair'. You should be able to add the needed checkmark. Otherwise rerun or redownload the file from python.org.



        If you need further help with installation questions, the python.org python-list is sometimes a better forum.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 20 '18 at 8:59









        Terry Jan ReedyTerry Jan Reedy

        12.1k12140




        12.1k12140
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f49922530%2fpython-idle-not-opening-due-to-tcl-tk-error%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            MongoDB - Not Authorized To Execute Command

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

            How to fix TextFormField cause rebuild widget in Flutter