pip install easygui webbrowser pyautogui cvzone opencv-python
pyinstaller --noconfirm --onefile --windowed --icon "dtn.ico" --name "VirtualMouse" --log-level "DEBUG" "main.py"
block_cipher = None
linedef get_mediapipe_path():
import mediapipe
mediapipe_path = mediapipe.__path__[0]
return mediapipe_path
Then add the following code after the pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
function
mediapipe_tree = Tree(get_mediapipe_path(), prefix='mediapipe', excludes=["*.pyc"])
a.datas += mediapipe_tree
a.binaries = filter(lambda x: 'mediapipe' not in x[0], a.binaries)
pyinstaller "VirtualMouse.spec"