How to Setup OpenCV in Python 3.6 Virtual Environment | Windows 7
Facebook: www.facebook.com/clueple Part 1 I am shooting this video just to remind myself how to install OpenCV in Python 3.6 Virtual Environment First of all we need to download the OpenCV wheel file From Christoph Kolhke's website we can find out the OpenCV wheel file by pressing Ctrl + F Simply doubleclick the version that fits your Python and you're good to go It's going to take a while to download Just be patient Remember the location that you saved the wheel file we need the path later for installation Part 2 If you haven't setup your Python virtual environment you can watch from the 9th second to 1 min 16 of this clip for the setup Part 3 Once we've setup virtualenv we move on to creating the details First of all go to the command prompt Let's say our virtual environment folder sits inside D drive In D drive we create a folder called "graphics" The folder name can be anything Since I am using this environment for graphics I just name it "graphics" Here we need to go to the "graphics" folder simply type CD graphics Inside the graphics folder we install our virtual environment with the name "testGraphics" so we type virtualenv --no-site-packages testGraphics Hit [Enter] and it starts downloading Now we're ready to setup OpenCV Part 4 Before we setup the OpenCV we need to activate our virtual environment Go back to command prompt Go to D drive where our environment sits and type .\graphics\testGraphics\Scripts\activate.bat Get to the OpenCV wheel file location which is Downloads in F drive Simply type cd Downloads Click back to the Downloads folder and look for wheel file's name Then go back to command prompt and type pip install "opencv_python-3.2.0-cp36-cp36m-win_amd64.whl" Hit [Enter] and the installation process begins Once we get OpenCV setup we can test our environment Go back to command prompt type CD\ to go back to top of D drive then type python -m idlelib.idle to get to the command prompt Remember we also need matplotlib and numpy simply pip install them respectively Once we get that done go back to Python idle and import cv2 matplotlib and numpy If you don't see error message then you're good to go
Download
0 formatsNo download links available.