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
35.73k stars 5.07k forks source link

Errors in launching the run.py #590

Open TVikg opened 6 days ago

TVikg commented 6 days ago

Hello,

I've a Macbook Pro with M1 pro CPU. I followed the instructions for the Mac OS installation but when I try to lunch run.py I get these errors:

Deep-Live-Cam/run.py", line 3, in from modules import core Deep-Live-Cam/modules/core.py", line 14, in import torch

I've python 3.12.6 installed.

AVGRadmin commented 6 days ago

Looks like you didn't copy the complete error text. Either way, i suggest you go through the complete install instructions again.

Notes:

kkaung commented 6 days ago

The same error I am getting

TVikg commented 4 days ago

This is the error: Traceback (most recent call last): File "/Users/user/Desktop/Deep-Live-Cam/run.py", line 3, in from modules import core File "/Users/user/Desktop/Deep-Live-Cam/modules/core.py", line 14, in import torch ModuleNotFoundError: No module named 'torch'

TVikg commented 4 days ago

I can't use the recommended python version because I have to downgrade other projects.

AVGRadmin commented 4 days ago

I have 3 python version on my PC for the same reason.

Use python virtual environment and set up a seperate environment for this project with python 10. See: https://docs.python.org/3.10/library/venv.html You can have multiple python versions installed, just make sure your virtual environment is using python 3.10.