Comfy-Org / Comfy-Org/ComfyUI

Intel Mac Help - Pytorch/Anaconda does not comply

Open
#6,428 7 comments 0 reactions 0 assignees View on GitHub
User Support
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

### Your question

Okay, Trying to install ComfyUI to my MacOS (model is: iMac, Rentina 5k, 27-inch, 2020, w/3.1 GHz 6-Core Intel Core i5). Everything goes wells from installing Homebrew, to the python script. But after typing in "pip3 install - -upgrade pip setuptools" results in: Usage:
pip3 install [options] [package-index-options] ...
pip3 install [options] -r [package-index-options] ...
pip3 install [options] [-e] ...
pip3 install [options] [-e] ...
pip3 install [options] ...

no such option: -u

which after attempting PyTorch ends with:
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
xyz, where xyz is the package you are trying to
install.

Heck, even putting in "pip3 install -r requirements.txt" results in not being able to find it even if the requirements.txt is right there.
So I tried to switch over to Anaconda. Everything seems to turn out great until i tried to verify the mps support with:
import torch
if torch.backends.mps.is_available():
mps_device = torch.device("mps")
x = torch.ones(1, device=mps_device)
print (x)
else:
print ("MPS device not found.")

The expected results should be, "tensor([1.], device='mps:0')", but the actual result is not in directory.

I'm at my wits end. What am I doing wrong here?

### Logs

_No response_

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.