Python34.dll is missing










2















I had created an application in Python and then I tried to make an executable from it.
Works well in Ubuntu and Windows but only when on this system I have Python installed.
In other case (Tried only for Win) I get the error that "The application can't start because python34.dll is missing"



What I do (filename is curr.py, also I have icon.res for icon):



  1. python C:Python34Scriptscython-script.py --embed curr.py

  2. in curr.c replace wmain by main (without doing it app won't be compiled at all)

  3. gcc curr.c -o curr.exe -IC:Python34include -LC:Python34libs icon.res -lpython34 -mwindows --static

Of course, If I copy python34.dll to the app's folder everything is OK.
Do I have another way?










share|improve this question






















  • Is the directory containing python34.dll in %PATH%?

    – cdarke
    Jan 8 '15 at 22:51











  • Of course, there is.

    – GriMel
    Jan 9 '15 at 0:13











  • I could see something like py2exe being useful.

    – IanH
    Jan 9 '15 at 6:20











  • py2exe copies python34.dll, altogether with bunch of additional files. I suppose, there is no way to "pack" python34.dll

    – GriMel
    Jan 9 '15 at 14:12















2















I had created an application in Python and then I tried to make an executable from it.
Works well in Ubuntu and Windows but only when on this system I have Python installed.
In other case (Tried only for Win) I get the error that "The application can't start because python34.dll is missing"



What I do (filename is curr.py, also I have icon.res for icon):



  1. python C:Python34Scriptscython-script.py --embed curr.py

  2. in curr.c replace wmain by main (without doing it app won't be compiled at all)

  3. gcc curr.c -o curr.exe -IC:Python34include -LC:Python34libs icon.res -lpython34 -mwindows --static

Of course, If I copy python34.dll to the app's folder everything is OK.
Do I have another way?










share|improve this question






















  • Is the directory containing python34.dll in %PATH%?

    – cdarke
    Jan 8 '15 at 22:51











  • Of course, there is.

    – GriMel
    Jan 9 '15 at 0:13











  • I could see something like py2exe being useful.

    – IanH
    Jan 9 '15 at 6:20











  • py2exe copies python34.dll, altogether with bunch of additional files. I suppose, there is no way to "pack" python34.dll

    – GriMel
    Jan 9 '15 at 14:12













2












2








2


1






I had created an application in Python and then I tried to make an executable from it.
Works well in Ubuntu and Windows but only when on this system I have Python installed.
In other case (Tried only for Win) I get the error that "The application can't start because python34.dll is missing"



What I do (filename is curr.py, also I have icon.res for icon):



  1. python C:Python34Scriptscython-script.py --embed curr.py

  2. in curr.c replace wmain by main (without doing it app won't be compiled at all)

  3. gcc curr.c -o curr.exe -IC:Python34include -LC:Python34libs icon.res -lpython34 -mwindows --static

Of course, If I copy python34.dll to the app's folder everything is OK.
Do I have another way?










share|improve this question














I had created an application in Python and then I tried to make an executable from it.
Works well in Ubuntu and Windows but only when on this system I have Python installed.
In other case (Tried only for Win) I get the error that "The application can't start because python34.dll is missing"



What I do (filename is curr.py, also I have icon.res for icon):



  1. python C:Python34Scriptscython-script.py --embed curr.py

  2. in curr.c replace wmain by main (without doing it app won't be compiled at all)

  3. gcc curr.c -o curr.exe -IC:Python34include -LC:Python34libs icon.res -lpython34 -mwindows --static

Of course, If I copy python34.dll to the app's folder everything is OK.
Do I have another way?







python dll cython






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 8 '15 at 22:48









GriMelGriMel

76221028




76221028












  • Is the directory containing python34.dll in %PATH%?

    – cdarke
    Jan 8 '15 at 22:51











  • Of course, there is.

    – GriMel
    Jan 9 '15 at 0:13











  • I could see something like py2exe being useful.

    – IanH
    Jan 9 '15 at 6:20











  • py2exe copies python34.dll, altogether with bunch of additional files. I suppose, there is no way to "pack" python34.dll

    – GriMel
    Jan 9 '15 at 14:12

















  • Is the directory containing python34.dll in %PATH%?

    – cdarke
    Jan 8 '15 at 22:51











  • Of course, there is.

    – GriMel
    Jan 9 '15 at 0:13











  • I could see something like py2exe being useful.

    – IanH
    Jan 9 '15 at 6:20











  • py2exe copies python34.dll, altogether with bunch of additional files. I suppose, there is no way to "pack" python34.dll

    – GriMel
    Jan 9 '15 at 14:12
















Is the directory containing python34.dll in %PATH%?

– cdarke
Jan 8 '15 at 22:51





Is the directory containing python34.dll in %PATH%?

– cdarke
Jan 8 '15 at 22:51













Of course, there is.

– GriMel
Jan 9 '15 at 0:13





Of course, there is.

– GriMel
Jan 9 '15 at 0:13













I could see something like py2exe being useful.

– IanH
Jan 9 '15 at 6:20





I could see something like py2exe being useful.

– IanH
Jan 9 '15 at 6:20













py2exe copies python34.dll, altogether with bunch of additional files. I suppose, there is no way to "pack" python34.dll

– GriMel
Jan 9 '15 at 14:12





py2exe copies python34.dll, altogether with bunch of additional files. I suppose, there is no way to "pack" python34.dll

– GriMel
Jan 9 '15 at 14:12












2 Answers
2






active

oldest

votes


















0














Just installed PyInstaller - it has the option to compile to one file.






share|improve this answer






























    -2














    What worked in My case is



    download pyhton34.dll and paste it into
    C:WindowsSystem32 or
    C:Windowssyswow64, one of will definitely work.






    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%2f27850953%2fpython34-dll-is-missing%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Just installed PyInstaller - it has the option to compile to one file.






      share|improve this answer



























        0














        Just installed PyInstaller - it has the option to compile to one file.






        share|improve this answer

























          0












          0








          0







          Just installed PyInstaller - it has the option to compile to one file.






          share|improve this answer













          Just installed PyInstaller - it has the option to compile to one file.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 14 '16 at 15:20









          GriMelGriMel

          76221028




          76221028























              -2














              What worked in My case is



              download pyhton34.dll and paste it into
              C:WindowsSystem32 or
              C:Windowssyswow64, one of will definitely work.






              share|improve this answer





























                -2














                What worked in My case is



                download pyhton34.dll and paste it into
                C:WindowsSystem32 or
                C:Windowssyswow64, one of will definitely work.






                share|improve this answer



























                  -2












                  -2








                  -2







                  What worked in My case is



                  download pyhton34.dll and paste it into
                  C:WindowsSystem32 or
                  C:Windowssyswow64, one of will definitely work.






                  share|improve this answer















                  What worked in My case is



                  download pyhton34.dll and paste it into
                  C:WindowsSystem32 or
                  C:Windowssyswow64, one of will definitely work.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 26 '16 at 8:25

























                  answered Nov 23 '16 at 4:27









                  Lokesh TiwariLokesh Tiwari

                  6,60122132




                  6,60122132



























                      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%2f27850953%2fpython34-dll-is-missing%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







                      這個網誌中的熱門文章

                      How to read a connectionString WITH PROVIDER in .NET Core?

                      Node.js Script on GitHub Pages or Amazon S3

                      Museum of Modern and Contemporary Art of Trento and Rovereto