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

  • Home
  • SEARCH
  • 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 661543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:16:44+00:00 2026-05-13T23:16:44+00:00

I cannot get the example Python programs to run. When executing the Python command

  • 0

I cannot get the example Python programs to run. When executing the Python command “from opencv import cv” I get the message “ImportError: No module named _cv”. There is a stale _cv.pyd in the site-packages directory, but no _cv.py anywhere. See step 5 below.

MS Windows XP, VC++ 2008, Python 2.6, OpenCV 2.0

Here’s what I have done.

  1. Downloaded and ran the MS Windows installer for OpenCV2.0.
  2. Downloaded and installed CMake
  3. Downloaded and installed SWIG
  4. Ran CMake. After unchecking “ENABLE_OPENMP” in the CMake GUI, I was able to build OpenCV using INSTALL.vcproj and BUILD_ALL.vcproj. I do not know what the difference is, so I built everything under both of those project files. The C example programs run fine.
  5. Copied contents of OpenCV2.0/Python2.6/lib/site-packages to my installed Python2.6/lib/site-packages directory. I notice that it contains an old _cv.pyd and an old libcv.dll.a.
  • 1 1 Answer
  • 1 View
  • 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-05-13T23:16:44+00:00Added an answer on May 13, 2026 at 11:16 pm

    After Step 1 (Installer) just copy the content of C:\OpenCV2.0\Python2.6\Lib\site-packages to C:\Python26\Lib\site-packages (standard installation path assumed).
    That’s all.

    If you have a webcam installed you can try the camshift.demo in C:\OpenCV2.0\samples\python

    The deprecated stuff (C:\OpenCV2.0\samples\swig_python) does not work at the moment as somebody wrote above. The OpenCV People are working on it. Here is the full picture:

    31/03/10 (hopefully) Next OpenCV Official Release: 2.1.0 is due March
    31st, 2010.
    link://opencv.willowgarage.com/wiki/Welcome/Introduction#Announcements

    04/03/10 [james]rewriting samples for new Python 5:36 PM Mar 4th
    via API link://twitter.com/opencvlibrary

    12/31/09 We’ve gotten more serious about OpenCV’s software
    engineering. We now have a full C++ and Python interface.
    link://opencv.willowgarage.com/wiki/OpenCV%20Monthly

    9/30/09 Several (actually, most) SWIG-based Python samples do not work
    correctly now. The reason is this problem is being investigated and
    the intermediate update of the OpenCV Python package will be released
    as soon as the problem is sorted out.
    link://opencv.willowgarage.com/wiki/OpenCV%20Monthly

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

Sidebar

Related Questions

I cannot for the life of me get this. Example of fails, the last
Im trying to import a company module into my software and I get the
I have downloaded CVtypes and tried the example scripts with it but cannot get
I cannot get my Wordpress theme to randomise the posts I'm displaying in the
I cannot get my Spring web app to find my scripts. I have the
I cannot get this function to fire off... I'm thinking I need a fresh
I cannot get my SID working ... <?php session_start(); // Or maybe pass along
I cannot get Bindable LINQ to work with VB.NET for the life of me.
I cannot get the background to stretch behind the contentbox. The strange thing is,
I cannot get the jQuery slideDown function to work on <table> elements. They just

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.