Question: HI! I'm trying to install opencv and use it with python, but when I compile it I get no errors but I can't import cv module from python:

```
patrick:release patrick$ python
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named cv

```

The code I used to compile it is this:

```
cd opencv
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON
make
sudo make install

```

how can I get it working with python?

Answer: 
We can install opencv for Python for Mac OS X with home-brew.

First, install home-brew:

`ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"`

You can see the details for how to install homebrew. <http://brew.sh>

If you don't install Python, install python(brew will install python2.7):

`brew install python`

Maybe you want install Python3: `brew install python3`

Then install opencv3 for Python3:

`brew install opencv3 --with-python3`

If you want install opencv3 for Python(Python2.7): `brew install opencv3 --with-python`

OR install opencv2 for Python3: `brew install opencv --with-python3`

OR if you want install opencv2 for Python3: `brew install opencv --with-python3`

Finally, maybe you will **link site-packages of opencv to the site-packages of Python.**

Notes: In the follow command, `/usr/local/opt/opencv3/lib/python3.5/site-packages` is the directory of opencv3's site-packages, `/usr/local/lib/python3.5/site-packages/` is the directory of Python3.5's site-packages. 

Maybe you should change the two to your own OPENCV AND PYTHON `site-packages` directories.

`echo /usr/local/opt/opencv3/lib/python3.5/site-packages >> /usr/local/lib/python3.5/site-packages/opencv3.pth`
If you have you want a simple and quick install in Windows, you can download [Python(x,y)](http://python-xy.github.io). This distribution includes OpenCv. Be sure to specify that you want to install OpenCV in the installation setup, because it is not installed by default.