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 7766109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:19:45+00:00 2026-06-01T15:19:45+00:00

When is it necessary to specify modules to include? Doesn’t py2exe search and include

  • 0

When is it necessary to specify modules to include? Doesn’t py2exe search and include whatever is needed per: http://www.py2exe.org/index.cgi/FAQ?

And why does it include modules that are not being used, such as [“Tkconstants”, “Tkinter”, “tcl”, “wx”] (I’m using Qt, but have wx installed on my PC) that then need to be excluded?

  • 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-01T15:19:46+00:00Added an answer on June 1, 2026 at 3:19 pm

    py2exe tries to create a graph of all the dependencies, starting with your entry point script. It can’t always get it 100% correct, which is why you are provided the includes and excludes options to fine tune the package.

    Refer to options here: http://www.py2exe.org/index.cgi/ListOfOptions

    Sometimes modules you didn’t want will get included and if this happens just add them to the exclude. I suppose the answer to your question would be: manage the setup.py manually when the out-of-the box options don’t package it exactly how you want.

    The help files for py2exe actually include a bunch of tips and tricks… one specifically addressing your issue with Tk being included: http://www.py2exe.org/index.cgi/TkInter

    The index of the tips and tricks is here: http://www.py2exe.org/index.cgi/Py2Exe

    I’ve built a ton of apps using the very similar py2app for osx. Over the course of different versions, sometimes they change the way it discovers dependencies. It also uses various “recipes” for how to handle certain packages like Qt. A newer version of p2app suddenly started including all of the PyQt modules instead of just the two I used. So, I had to add them to my excludes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The MSDN documentation doesn't generally specify the assembly a namespace is in, so there's
Is it necessary to specify f while initiating a float type variable. float a
If I have a read-only string property, is it necessary to specify strong (or
It is not necessary to specify array size when creating array, right? Then, why
When using fopen or fstream , it's necessary to specify binary mode in order
In my grails app, we use jquery. I include jquery on the necessary pages
not necessary an UML diagram, just a simple way to graphically document the relations
Is it necessary or advantageous to write custom connection pooling code when developing applications
Are CDATA tags ever necessary in script tags and if so when? In other
The question gives all necessary data: what is an efficient algorithm to generate a

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.