Configuring OpenCV in Windows - wtepfenhart/BioSimVis GitHub Wiki

Please install OpenCV prior to run the following commands:

https://preview.tinyurl.com/ybdfotyu

Activate the virtual environment

In PowerShell: c:\user\xx\opencv> .\Scripts\activate

Ensure the latest pip is installed

In PowerShell: python - m pip install --upgrade pip

Ensure freeze is installed

In Python Shell: pip freeze

Ensure pillow is installed

In Python Shell: pip install pillow --upgrade

Key commands in Windows PowerShell to set proper privileges to create virtual environments

  • get-help about signing
  • get-executionpolicy
  • set-executionpolicy remotesigned
  • set-executionpolicy Unrestricted -Scope CurrentUser