Cannot import cv2 in python in OSX
<p>I have installed OpenCV 3.1 in my Mac, cv2 is also installed through <code>pip install cv2</code>. </p>

<pre><code>vinllen@ $ pip install cv2
You are using pip version 7.1.0, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied (use --upgrade to upgrade): cv2 in /usr/local/lib/python2.7/site-packages
</code></pre>

<p>But it looks like <code>cv2</code> and <code>cv</code> cannot be used:</p>

<pre><code>Python 2.7.10 (default, Jul 13 2015, 12:05:58)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import cv2
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
ImportError: No module named cv2
&gt;&gt;&gt; import cv
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
ImportError: No module named cv
</code></pre>

<p>I have tried almost all the solutions list online, but cannot work.</p>