OpenCV-Python Installation

We recommend using Anaconda with Python 3 for the homework assignments. The instruction to install anaconda and Python 3 can be found at Below is a short tutorial to install the experiment system on the PSU Linux lab machines and on a regular Windows machine. Note, we highly recommend that the homework assignments are completed on a Linux machine and will grade your assignments on Linux only.


1. Install anaconda: 

bash -b -p $HOME/anaconda
export PATH="$HOME/anaconda/bin:$PATH"
conda update --all

2. Install necessary libraries: 

pip install opencv-python==
pip install opencv-contrib-python==


1. Download and install anaconda environment Python 3.7:

Download Anaconda

2. Open Anaconda Prompt
Start Menu / Anaconda3 / Anaconda Prompt

Anaconda Prompt

3. In Anaconda Prompt, type commands to install necessary libraries:

pip install opencv-python==
pip install opencv-contrib-python==

Install libraries

4. Run your python program

Run python program