'Pyuic4' is not recognized as an internal external command












6















Im trying to compile a ui file by using Pyuic, but i can't get it to work...
Every time i try using the command




pyuic4 -o OutFile_ui.py InFile.ui




it just givet me this error




C:Windowssystem32>pyuic4 'pyuic4' is not recognized as an internal
or external command, operable program or batch file.




I actually dont't know where the pyuic file should be located, should PyQt, be located within the Python files or something?



Please Help










share|improve this question























  • to run pyqt you must have installed QT framework

    – Surinder ツ
    Sep 17 '14 at 6:10
















6















Im trying to compile a ui file by using Pyuic, but i can't get it to work...
Every time i try using the command




pyuic4 -o OutFile_ui.py InFile.ui




it just givet me this error




C:Windowssystem32>pyuic4 'pyuic4' is not recognized as an internal
or external command, operable program or batch file.




I actually dont't know where the pyuic file should be located, should PyQt, be located within the Python files or something?



Please Help










share|improve this question























  • to run pyqt you must have installed QT framework

    – Surinder ツ
    Sep 17 '14 at 6:10














6












6








6


0






Im trying to compile a ui file by using Pyuic, but i can't get it to work...
Every time i try using the command




pyuic4 -o OutFile_ui.py InFile.ui




it just givet me this error




C:Windowssystem32>pyuic4 'pyuic4' is not recognized as an internal
or external command, operable program or batch file.




I actually dont't know where the pyuic file should be located, should PyQt, be located within the Python files or something?



Please Help










share|improve this question














Im trying to compile a ui file by using Pyuic, but i can't get it to work...
Every time i try using the command




pyuic4 -o OutFile_ui.py InFile.ui




it just givet me this error




C:Windowssystem32>pyuic4 'pyuic4' is not recognized as an internal
or external command, operable program or batch file.




I actually dont't know where the pyuic file should be located, should PyQt, be located within the Python files or something?



Please Help







cmd pyqt external pyuic






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 17 '14 at 6:04









RasmusGPRasmusGP

83131222




83131222













  • to run pyqt you must have installed QT framework

    – Surinder ツ
    Sep 17 '14 at 6:10



















  • to run pyqt you must have installed QT framework

    – Surinder ツ
    Sep 17 '14 at 6:10

















to run pyqt you must have installed QT framework

– Surinder ツ
Sep 17 '14 at 6:10





to run pyqt you must have installed QT framework

– Surinder ツ
Sep 17 '14 at 6:10












4 Answers
4






active

oldest

votes


















11














When you install PyQt, it gets install under Python's site-packages.



There is a batch file pyuic.bat under the <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4. Use this batch to run your command.



If you look into the content of the batch file you will see that it calls the Python interpreter with PyQt4uicpyuic.py and the given arguments.






share|improve this answer
























  • Wait, so it installs itself? i just found a zip file that i have to extract ??

    – RasmusGP
    Sep 17 '14 at 6:14






  • 1





    No first you have to install PyQt4, if you haven't done so. Check PyQt4

    – sk11
    Sep 17 '14 at 6:17











  • I short modification to your answer ... Instead of saying "When you install PyQt, it gets install under Python's site-packages.", it should be, "Install PyQT under your existing Python installation directory e.g. C:PythonPython3.5". Because, my Python was not installed in C drive

    – Ali
    Mar 28 '16 at 11:08













  • If you installed pyside, then it's pyside-uic.exe

    – Smit Johnth
    Jul 13 '16 at 0:36





















4














If you add <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4 to you environment path you can run it from any directory by using c:pyuic4 input.ui -o output.py






share|improve this answer































    0














    In order to convert Qt-designer file.ui into file.py you need to call pyuic4.bat file.




    1. Go to pythonLibsite-package from command prompt.

    2. type pyuic4.bat -x file_locationfile.ui -o file_locationfile.py then Enter






    share|improve this answer































      0














      sk11 is right. Do the following:




      • Go to <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4.

      • There is a pyuic4.bat file in this directory. Copy your .ui file here.

      • In cmd, change the directory to <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4.

      • Convert the .ui to .py file using pyuic4 -x name_of_ui_file.ui -o chosen_name.py.


      This is so basic but it works!






      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%2f25883365%2fpyuic4-is-not-recognized-as-an-internal-external-command%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        11














        When you install PyQt, it gets install under Python's site-packages.



        There is a batch file pyuic.bat under the <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4. Use this batch to run your command.



        If you look into the content of the batch file you will see that it calls the Python interpreter with PyQt4uicpyuic.py and the given arguments.






        share|improve this answer
























        • Wait, so it installs itself? i just found a zip file that i have to extract ??

          – RasmusGP
          Sep 17 '14 at 6:14






        • 1





          No first you have to install PyQt4, if you haven't done so. Check PyQt4

          – sk11
          Sep 17 '14 at 6:17











        • I short modification to your answer ... Instead of saying "When you install PyQt, it gets install under Python's site-packages.", it should be, "Install PyQT under your existing Python installation directory e.g. C:PythonPython3.5". Because, my Python was not installed in C drive

          – Ali
          Mar 28 '16 at 11:08













        • If you installed pyside, then it's pyside-uic.exe

          – Smit Johnth
          Jul 13 '16 at 0:36


















        11














        When you install PyQt, it gets install under Python's site-packages.



        There is a batch file pyuic.bat under the <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4. Use this batch to run your command.



        If you look into the content of the batch file you will see that it calls the Python interpreter with PyQt4uicpyuic.py and the given arguments.






        share|improve this answer
























        • Wait, so it installs itself? i just found a zip file that i have to extract ??

          – RasmusGP
          Sep 17 '14 at 6:14






        • 1





          No first you have to install PyQt4, if you haven't done so. Check PyQt4

          – sk11
          Sep 17 '14 at 6:17











        • I short modification to your answer ... Instead of saying "When you install PyQt, it gets install under Python's site-packages.", it should be, "Install PyQT under your existing Python installation directory e.g. C:PythonPython3.5". Because, my Python was not installed in C drive

          – Ali
          Mar 28 '16 at 11:08













        • If you installed pyside, then it's pyside-uic.exe

          – Smit Johnth
          Jul 13 '16 at 0:36
















        11












        11








        11







        When you install PyQt, it gets install under Python's site-packages.



        There is a batch file pyuic.bat under the <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4. Use this batch to run your command.



        If you look into the content of the batch file you will see that it calls the Python interpreter with PyQt4uicpyuic.py and the given arguments.






        share|improve this answer













        When you install PyQt, it gets install under Python's site-packages.



        There is a batch file pyuic.bat under the <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4. Use this batch to run your command.



        If you look into the content of the batch file you will see that it calls the Python interpreter with PyQt4uicpyuic.py and the given arguments.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Sep 17 '14 at 6:08









        sk11sk11

        1,4441322




        1,4441322













        • Wait, so it installs itself? i just found a zip file that i have to extract ??

          – RasmusGP
          Sep 17 '14 at 6:14






        • 1





          No first you have to install PyQt4, if you haven't done so. Check PyQt4

          – sk11
          Sep 17 '14 at 6:17











        • I short modification to your answer ... Instead of saying "When you install PyQt, it gets install under Python's site-packages.", it should be, "Install PyQT under your existing Python installation directory e.g. C:PythonPython3.5". Because, my Python was not installed in C drive

          – Ali
          Mar 28 '16 at 11:08













        • If you installed pyside, then it's pyside-uic.exe

          – Smit Johnth
          Jul 13 '16 at 0:36





















        • Wait, so it installs itself? i just found a zip file that i have to extract ??

          – RasmusGP
          Sep 17 '14 at 6:14






        • 1





          No first you have to install PyQt4, if you haven't done so. Check PyQt4

          – sk11
          Sep 17 '14 at 6:17











        • I short modification to your answer ... Instead of saying "When you install PyQt, it gets install under Python's site-packages.", it should be, "Install PyQT under your existing Python installation directory e.g. C:PythonPython3.5". Because, my Python was not installed in C drive

          – Ali
          Mar 28 '16 at 11:08













        • If you installed pyside, then it's pyside-uic.exe

          – Smit Johnth
          Jul 13 '16 at 0:36



















        Wait, so it installs itself? i just found a zip file that i have to extract ??

        – RasmusGP
        Sep 17 '14 at 6:14





        Wait, so it installs itself? i just found a zip file that i have to extract ??

        – RasmusGP
        Sep 17 '14 at 6:14




        1




        1





        No first you have to install PyQt4, if you haven't done so. Check PyQt4

        – sk11
        Sep 17 '14 at 6:17





        No first you have to install PyQt4, if you haven't done so. Check PyQt4

        – sk11
        Sep 17 '14 at 6:17













        I short modification to your answer ... Instead of saying "When you install PyQt, it gets install under Python's site-packages.", it should be, "Install PyQT under your existing Python installation directory e.g. C:PythonPython3.5". Because, my Python was not installed in C drive

        – Ali
        Mar 28 '16 at 11:08







        I short modification to your answer ... Instead of saying "When you install PyQt, it gets install under Python's site-packages.", it should be, "Install PyQT under your existing Python installation directory e.g. C:PythonPython3.5". Because, my Python was not installed in C drive

        – Ali
        Mar 28 '16 at 11:08















        If you installed pyside, then it's pyside-uic.exe

        – Smit Johnth
        Jul 13 '16 at 0:36







        If you installed pyside, then it's pyside-uic.exe

        – Smit Johnth
        Jul 13 '16 at 0:36















        4














        If you add <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4 to you environment path you can run it from any directory by using c:pyuic4 input.ui -o output.py






        share|improve this answer




























          4














          If you add <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4 to you environment path you can run it from any directory by using c:pyuic4 input.ui -o output.py






          share|improve this answer


























            4












            4








            4







            If you add <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4 to you environment path you can run it from any directory by using c:pyuic4 input.ui -o output.py






            share|improve this answer













            If you add <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4 to you environment path you can run it from any directory by using c:pyuic4 input.ui -o output.py







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Aug 19 '16 at 15:06









            Jason CallahanJason Callahan

            37826




            37826























                0














                In order to convert Qt-designer file.ui into file.py you need to call pyuic4.bat file.




                1. Go to pythonLibsite-package from command prompt.

                2. type pyuic4.bat -x file_locationfile.ui -o file_locationfile.py then Enter






                share|improve this answer




























                  0














                  In order to convert Qt-designer file.ui into file.py you need to call pyuic4.bat file.




                  1. Go to pythonLibsite-package from command prompt.

                  2. type pyuic4.bat -x file_locationfile.ui -o file_locationfile.py then Enter






                  share|improve this answer


























                    0












                    0








                    0







                    In order to convert Qt-designer file.ui into file.py you need to call pyuic4.bat file.




                    1. Go to pythonLibsite-package from command prompt.

                    2. type pyuic4.bat -x file_locationfile.ui -o file_locationfile.py then Enter






                    share|improve this answer













                    In order to convert Qt-designer file.ui into file.py you need to call pyuic4.bat file.




                    1. Go to pythonLibsite-package from command prompt.

                    2. type pyuic4.bat -x file_locationfile.ui -o file_locationfile.py then Enter







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jun 18 '18 at 15:00









                    RohanRohan

                    1




                    1























                        0














                        sk11 is right. Do the following:




                        • Go to <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4.

                        • There is a pyuic4.bat file in this directory. Copy your .ui file here.

                        • In cmd, change the directory to <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4.

                        • Convert the .ui to .py file using pyuic4 -x name_of_ui_file.ui -o chosen_name.py.


                        This is so basic but it works!






                        share|improve this answer






























                          0














                          sk11 is right. Do the following:




                          • Go to <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4.

                          • There is a pyuic4.bat file in this directory. Copy your .ui file here.

                          • In cmd, change the directory to <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4.

                          • Convert the .ui to .py file using pyuic4 -x name_of_ui_file.ui -o chosen_name.py.


                          This is so basic but it works!






                          share|improve this answer




























                            0












                            0








                            0







                            sk11 is right. Do the following:




                            • Go to <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4.

                            • There is a pyuic4.bat file in this directory. Copy your .ui file here.

                            • In cmd, change the directory to <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4.

                            • Convert the .ui to .py file using pyuic4 -x name_of_ui_file.ui -o chosen_name.py.


                            This is so basic but it works!






                            share|improve this answer















                            sk11 is right. Do the following:




                            • Go to <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4.

                            • There is a pyuic4.bat file in this directory. Copy your .ui file here.

                            • In cmd, change the directory to <PYTHON_INSTALL_DIR>Libsite-packagesPyQt4.

                            • Convert the .ui to .py file using pyuic4 -x name_of_ui_file.ui -o chosen_name.py.


                            This is so basic but it works!







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Nov 20 '18 at 10:04









                            Pang

                            6,9891666105




                            6,9891666105










                            answered Nov 20 '18 at 9:57









                            HossHoss

                            53




                            53






























                                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%2f25883365%2fpyuic4-is-not-recognized-as-an-internal-external-command%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

                                Xamarin.iOS Cant Deploy on Iphone

                                Glorious Revolution

                                Dulmage-Mendelsohn matrix decomposition in Python