Comfy-Org / Comfy-Org/ComfyUI

Unable to run using Python Embeddable Package

Open
#2,350 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

I tried to run it using Embeddable Package to avoid conflicts with other environments.
But, the following error is output and I cannot run it.

```powershell
PS D:\Desktop\ComfyUI> python-3.10.6-embed-amd64/python.exe ComfyUI/main.py
Traceback (most recent call last):
File "D:\Desktop\ComfyUI\ComfyUI\main.py", line 1, in
import comfy.options
ModuleNotFoundError: No module named 'comfy'
```

Also, if `import comfy.options` and `comfy.options.enable_args_parsing() `are commented out, the following error occurs

```powershell
PS D:\Desktop\ComfyUI> python-3.10.6-embed-amd64/python.exe ComfyUI/main.py
Traceback (most recent call last):
File "D:\Desktop\ComfyUI\ComfyUI\main.py", line 6, in
import folder_paths
ModuleNotFoundError: No module named 'folder_paths'
```
Other versions could not be run.
Will this be resolved?

directory structure
```
ComfyUI
|-ComfyUI
| |-.ci
| |-.github
| |- ...
|-python-3.10.6-embed-amd64
| |-Lib
| |-Scripts
| |- ...
| |-python.exe
| |- ...
```

Python was built using the following steps

1. Download [this](https://www.python.org/ftp/python/3.10.6/python-3.10.6-embed-amd64.zip) from [official](https://www.python.org/downloads/windows/).
2. Extract to `ComfyUI/`
3. Uncomment out `import site` of `python-3.10.6-embed-amd64\python310._pth`

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.