Skip to content

Commit f3ab235

Browse files
authored
Merge pull request #481 from luxonis/install_requirements_opencv_fix
remove opencv libraries if exists before installation
2 parents 4a3811c + ef2367f commit f3ab235

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

install_requirements.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
if not in_venv:
3131
pip_install.append("--user")
3232

33+
subprocess.check_call(pip_call + ["uninstall", "-y", "opencv-python", "opencv-contrib-python"]) # remove old versions of OpenCV
3334
subprocess.check_call(pip_install + ["pip", "-U"])
3435
# temporary workaroud for issue between main and develop
3536
subprocess.check_call(pip_call + ["uninstall", "depthai", "--yes"])

0 commit comments

Comments
 (0)