Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8765459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:17:17+00:00 2026-06-13T16:17:17+00:00

System XP and Win 7 Both python 2.6 and 2.7 I created my .exe

  • 0

System XP and Win 7
Both python 2.6 and 2.7

I created my .exe with ‘bundle_files’:1 so I only one file and without the .dll and it ran on my computer, then went to a new one w/ out python or the vs distributables – didn’t work. Was getting an error of “The system cannot execute the specified program” Did some looking around and figured out I needed the distributables – well installed and worked – but I want to compile w/ the budle_files:1 option so I only have the one .exe file
with the .dll and not have to have distibutables on my computer and friends. (I understand you can’t bundle this .dll)

I used the example provided in the py2exe guide but the .dll file and .manifest file wasn’t in the location it showed so I just copy them to another easier location. It compiles and includes the “Microsoft.VC90.CRT” subfolder but I still get the error when I remove python and the distributables. Here is my script.

from distutils.core import setup
from glob import glob
import os
import sys
import platform
import py2exe


data_files = [("Microsoft.VC90.CRT", glob(r'C:\Documents and Settings\User\Desktop\Temp\dlls\*.*'))]
setup(console=['Script.py'],
    data_files=data_files,
    options = {'py2exe':{'bundle_files':1}},
    zipfile= None,
    ) 

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:17:18+00:00Added an answer on June 13, 2026 at 4:17 pm

    Never got an answer, just gave up one py2exe.

    Found pyinstaller. Which was able to do it even better than I would have been able to do with py2exe. Instead of having my one .exe file and the the extra .dll directory. It was able to make just the one .exe file and is able to run on systems without python or the redistributables.

    Place your script in the directory as the pyinstaller.py script.

    cmd > location of scripts
    
    pyinstaller.py --onefile <yourscript>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed python and django in my system that uses win vista. Now
Trying to run a self-hosted app on my Win 7 system, with little success.
Running PHP under IIS on my Win XP Pro system. I cannot debug my
I use NHiberante at my win service. Sometimes I get System.ObjectDisposedException: Session is closed!
I tried using Application Initialization on both Win 2008 R2, IIS 7.5 and Windows
I'm using Xampp (on win server 2003) and I've granted both PHP and Apache
There is a binary exe that executes under windows xp command prompt. One parameter
I'm using a Win 7 64-bit system. LibGDX gdx-helloworld-android app works fine. It doesn't
I want to develop a desktop app to be used cross-system (win, mac, linux),
had try python 2.7.3 & 3.x, both fail. error2 with py2.7 E:\Workspace\Code\SmartDoor>python Python 2.7.3

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.