Using
workon
, creating a virtual environment:
mkvirtualenv -p python3 opencv
Inside the virtual environment. If you are only working with images
pip install opencv-python
If you need support for working videos:
pip install opencv-contrib-python
If you need a non-GUI OpenCV:
pip install opencv-python-headless
If you need to install specific version you can use
==
to check the available version first like
pip install opencv-python==
, then install the version you require
Was this helpful?
0 / 0