
When you start Python IDLE, it shows the compiler details. For that, you have to use the same compiler used to build Python.

Problem is that, there is no official 64-bit binaries of Numpy. But if you want to use OpenCV for 圆4, 64-bit binaries of Python packages are to be installed. Note In this case, we are using 32-bit binaries of Python packages. Download and install Visual Studio and CMake.ĭownload and install necessary Python packages to their default locations.If the results are printed out without any errors, congratulations !!! You have installed OpenCV-Python successfully. Open Python IDLE and type following codes in Python terminal.


Download latest OpenCV release from GitHub or SourceForge site and double-click to extract it.Enter import numpy and make sure Numpy is working fine. Python will be installed to C:/Python27/ in case of Python 2.7. Install all packages into their default locations.Matplotlib ( pip install matplotlib) ( Matplotlib is optional, but recommended since we use it a lot in our tutorials).Numpy package (for example, using pip install numpy command).Python 3.x (3.4+) or Python 2.7.x from here.Below Python packages are to be downloaded and installed to their default locations.We will learn to setup OpenCV-Python in your Windows system.īelow steps are tested in a Windows 7-64 bit machine with Visual Studio 2010 and Visual Studio 2012.To run a simple “Hello World”, enter the following text and save the file as HelloWorld.py. From the Visual Studio terminal, let’s install Requests: pip install requests Open VS Code and go to Extensions, and find the Python extension: We will use Visual Studio Code as our IDE to write Python scripts. Let’s see which modules are installed, by typing: help("modules")

Opening it, we can start typing commands: Now, IDLE is installed, and we can access it through the Windows Start menu: Note this also installs IDLE (the IDE), pip (the package installer) and documentation: To install Python, go to the Python download page at and click on Downloads:Ĭheck Add Python to PATH and click to Install. In this post, we will look at how to run Python with Visual Studio Code in Windows.
