Script to install Opencv and Mediapipe inside of Blender (Windows) (Patreon)
Published:
2021-08-14 07:02:10
Imported:
2026-06
haven't archived this post yet. have a subscription? use the importer!
Downloads
Missing 1 full-res photo, 1 file, as this post has not yet been imported.
Content
You can download the file and open on the script tab inside blender, or copy the text and do like its show in the video
-----------------
import subprocess
import sys
import os
# path to python.exe
python_exe = os.path.join(sys.prefix, 'bin', 'python.exe')
py_lib = os.path.join(sys.prefix, 'lib', 'site-packages','pip')
# install opencv
subprocess.call([python_exe, py_lib, "install", "opencv_python"])
# install mediapipe
subprocess.call([python_exe, py_lib, "install", "mediapipe"])
Files
Previews only