ImportError: No module named cv2.cv
<p><strong>python 3.5 and windows 10</strong></p>

<p>I installed open cv using this command :</p>

<pre><code>pip install opencv_python-3.1.0-cp35-cp35m-win_amd64.whl
</code></pre>

<p>This command in python works fine :</p>

<pre><code>import cv2
</code></pre>

<p>But when i want to import cv2.cv :</p>

<pre><code>import cv2.cv as cv
</code></pre>

<p>This error comes up :</p>

<pre><code>import cv2.cv as cv
ImportError: No module named 'cv2.cv'; 'cv2' is not a package
</code></pre>

<p>So what is the problem and how can i fix it?</p>

<p>as @Miki said :</p>

<p><code>cv2.cv</code> has been removed in OpenCV3 and functions have changed</p>

<p>And this is OpenCV Documention:<a href="http://opencv.org/documentation.html" rel="nofollow">http://opencv.org/documentation.html</a></p>

python python-3.x opencv windows-10