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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:30:12+00:00 2026-06-02T05:30:12+00:00

I have designed a small application in Python under Windows, that uses opencv. I

  • 0

I have designed a small application in Python under Windows, that uses opencv.
I amm trying to create an executable so that anyone can install and use it, without having to install python/opencv/numpy . . .

I tried to use py2exe for this. It actually creates a .exe file, even though I have a warning during the build :

*** copy dlls ***
copying C:\Windows\system32\MSVFW32.dll -> 
...
The following modules appear to be missing
['cv2.cv']

When I try to run the .exe file using the command line, I see the message :

ImportError: numpy.core.multiarray failed to import

My setup.py file is pretty simple :

# creating executable here
from distutils.core import setup
import py2exe, sys, os

sys.argv.append('py2exe')

setup(
    options = {'py2exe': {'bundle_files': 1}},
    console=['facemovie.py'],
    zipfile = None,
)

Any idea how I can solve this?
This is the very first time I want to deploy, and I may be missing something.

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-02T05:30:13+00:00Added an answer on June 2, 2026 at 5:30 am

    Thanks karlphilip, you put me on the tracks.

    I wanted to avoid the “change my software utility” solution, so I stuck with py2exe.

    Actually, opencv was correctly found, but the library itself has a numpy dependancy, which was not detected.

    So my working solution is finally :
    options = {‘py2exe’: {‘bundle_files’: 1, ‘includes’: ‘numpy’ } },

    The final executable is pretty big, but running smoothly.

    I did not try on another computer, that does not have the software installed though, so there might be surprises to come.

    Thank you both for your help.

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

Sidebar

Related Questions

I have a small Spring MVC webapp (which embeds ActiveMQ) that is designed to
I have a small problem with an Xpage Application and hope that someone has
I have to develop a small application for school and I first designed in
I have a small program that which is confusing me. I am trying using
We have a MVC3 application that we have created many small actions and views
We have an application that uses Active Directory for its Authentication. This includes Kerberos
I have a Winforms application that is working correctly on various versions of windows
I am a small ISV. 2 developers. I have an existing application for Windows
I have designed a small C# Windows Forms project in VS2010 & now want
I have a small iPhone Project with a UITextView on my View, designed in

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.