Python 3.7 or greater is required (https://www.python.org/)
- Install anaconda individual edition for your OS (https://docs.anaconda.com/anaconda/install/)
- In terminal/command prompt, use the folowing commands:
conda create -- [your environment name] python=3.8conda activate [your environment name]conda install -c conda-forge opencv
Instalation using pip:
- In command prompt, use the following commands:
pip install --upgrade pippip install numpypip install opencv-python
Installation using pip:
- In terminal, use the following commands:
pip install --upgrade pippip install numpypip install opencv-python
- In terminal, use the following commands:
wget wget https://bootstrap.pypa.io/get-pip.pysudo python3 get-pip.pypip install --upgrade pippip install numpypip install opencv-python
- Enter the python prompt from terminal/command prompt with command
python - import cv2
- print(cv2.__version__)
If there are no errors and your version number is greater than 4.4, you are all set to use opencv with python.