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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:52:16+00:00 2026-05-23T12:52:16+00:00

I tried to install opencv and python with port and brew. but when i

  • 0

I tried to install opencv and python with port and brew.
but when i try import cv it says “module not found”.

i have the same problem on my windows machine and just no solution works.
is there a simple step by step solution for someone who does not know all the terminal codes?
im not really a good programmer but it would be awsome to get this working.

–edit–

got it working on Windows and Mac

Mac: First uninstalled Homebrew and MacPort
restarted, installed Macport again.
then :

sudo port install opencv +universal +python26

after that i just had to install numpy.

Win7

installed

python-2.7.2.msi
OpenCV-2.2.0-win32.exe
opencv-python-2.2.0.win32-py2.7.exe
numpy-1.6.0-win32-superpack-python2.7.exe
  • 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-05-23T12:52:16+00:00Added an answer on May 23, 2026 at 12:52 pm

    When using brew, try brew info opencv, which explicitly tells you:

    The OpenCV Python module will not work until you edit your PYTHONPATH like so:
    export PYTHONPATH=”/usr/local/lib/python2.6/site-packages/:$PYTHONPATH”

    The export thing should go into your shell config. You could put this into ~/.bashrc, but the truly system-wide setting would need to be set otherwise (try Setting environment variables in OS X?).

    Or else, in your python script:

    import sys
    sys.path.insert(0, "/usr/local/lib/python2.6/site-packages/")
    import cv

    Then it should work.

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

Sidebar

Related Questions

Where can i get OpenCV for python?What are the pre-requisites?? i tried to install
I need to install OpenCV on Win32. I do not have it installed currently.
I have a 64bit Vista laptop. Initally, I tried to Install a 64bit version
I am trying to install OpenCV over windows vista 64x but it's shows a
Tried to install some program, it gives above message requiring 1.1.4322. BUT as the
I tried installing OpenCV following the instructions for a MacPorts install on http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port ,
I tried to install SOAP::WSDL on Ubuntu 8.04 Server through CPAN but got the
I'm tried to install the Products module. I've done based on the tutorial (add
I tried to install Delphi 7 on Vista several times and Vista prevented me
I tried to install beautifulsoup. I get such an error: <-- snip --> raise

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.