hacksider / Deep-Live-Cam

real time face swap and one-click video deepfake with only a single image
GNU Affero General Public License v3.0
39.41k stars 5.75k forks source link

ModuleNotFoundError: No module named '_tkinter' #484

Closed sameerakhtari closed 1 week ago

sameerakhtari commented 2 months ago

when i am running this on my m1 macbook air, this error im getting at the last step where we run it. Even I installed tkinter module , reinstalled python, reinstalled requirement.txt but still same.

(venv39) apple@Apples-MacBook-Air Deep-Live-Cam % python run.py --execution-provider coreml

Traceback (most recent call last):
  File "/Users/apple/Downloads/testRepo/Deep-Live-Cam/run.py", line 3, in <module>
    from modules import core
  File "/Users/apple/Downloads/testRepo/Deep-Live-Cam/modules/core.py", line 20, in <module>
    import modules.ui as ui
  File "/Users/apple/Downloads/testRepo/Deep-Live-Cam/modules/ui.py", line 3, in <module>
    import customtkinter as ctk
  File "/Users/apple/Downloads/testRepo/Deep-Live-Cam/venv39/lib/python3.9/site-packages/customtkinter/__init__.py", line 5, in <module>
    from tkinter import Variable, StringVar, IntVar, DoubleVar, BooleanVar
  File "/opt/homebrew/Cellar/python@3.9/3.9.19_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/__init__.py", line 37, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
brianmatzelle commented 1 month ago

brew install python-tk@3.10