Error creating virtual environment: Error: File not found:

it is all shit.so difficult to install and unistall

Can you attach the main.log and comfyui.log files?

I am also getting the "[error] Error creating virtual environment: Error: File not found: " on an install attempt. Here is my main.log. I don’t think there is a comfyui.log file yet (if there is, I don’t know where it is).

[2024-12-01 16:16:12.340] [info] Creating ComfyUI directories in F:\ComfyUI_Desktop\ComfyUI
[2024-12-01 16:16:12.343] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\custom_nodes
[2024-12-01 16:16:12.343] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\input
[2024-12-01 16:16:12.344] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\output
[2024-12-01 16:16:12.345] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\user
[2024-12-01 16:16:12.345] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\user\default
[2024-12-01 16:16:12.346] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models
[2024-12-01 16:16:12.346] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\checkpoints
[2024-12-01 16:16:12.347] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\clip
[2024-12-01 16:16:12.347] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\clip_vision
[2024-12-01 16:16:12.348] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\configs
[2024-12-01 16:16:12.348] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\controlnet
[2024-12-01 16:16:12.348] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\diffusers
[2024-12-01 16:16:12.364] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\diffusion_models
[2024-12-01 16:16:12.365] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\embeddings
[2024-12-01 16:16:12.365] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\gligen
[2024-12-01 16:16:12.366] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\hypernetworks
[2024-12-01 16:16:12.366] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\loras
[2024-12-01 16:16:12.367] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\photomaker
[2024-12-01 16:16:12.367] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\style_models
[2024-12-01 16:16:12.367] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\unet
[2024-12-01 16:16:12.368] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\upscale_models
[2024-12-01 16:16:12.368] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\vae
[2024-12-01 16:16:12.369] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\vae_approx
[2024-12-01 16:16:12.369] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\animatediff_models
[2024-12-01 16:16:12.369] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\animatediff_motion_lora
[2024-12-01 16:16:12.370] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\animatediff_video_formats
[2024-12-01 16:16:12.370] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\liveportrait
[2024-12-01 16:16:12.371] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\insightface
[2024-12-01 16:16:12.371] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\insightface\buffalo_1
[2024-12-01 16:16:12.372] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\blip
[2024-12-01 16:16:12.372] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\blip\checkpoints
[2024-12-01 16:16:12.372] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\CogVideo
[2024-12-01 16:16:12.373] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\xlabs
[2024-12-01 16:16:12.373] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\xlabs\loras
[2024-12-01 16:16:12.374] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\xlabs\controlnets
[2024-12-01 16:16:12.374] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\layerstyle
[2024-12-01 16:16:12.374] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\LLM
[2024-12-01 16:16:12.375] [info] Created directory: F:\ComfyUI_Desktop\ComfyUI\models\Joy_caption
[2024-12-01 16:16:12.376] [info] Wrote settings to F:\ComfyUI_Desktop\ComfyUI\user\default\comfy.settings.json: {
“Comfy-Desktop.AutoUpdate”: true,
“Comfy-Desktop.SendStatistics”: true,
“Comfy.ColorPalette”: “dark”,
“Comfy.UseNewMenu”: “Top”,
“Comfy.Workflow.WorkflowTabsPosition”: “Topbar”,
“Comfy.Workflow.ShowMissingModelsWarning”: true,
“Comfy.Server.LaunchArgs”: {}
}
[2024-12-01 16:16:12.376] [info] Creating model config files in C:\Users\evila\AppData\Roaming\ComfyUI\extra_models_config.yaml
[2024-12-01 16:16:12.381] [info] Created extra_model_paths.yaml at C:\Users\evila\AppData\Roaming\ComfyUI\extra_models_config.yaml
[2024-12-01 16:16:12.618] [info] Server start
[2024-12-01 16:16:12.620] [info] Using uv at C:\Users\evila\AppData\Local\Programs@comfyorgcomfyui-electron\resources\uv\win\uv.exe
[2024-12-01 16:16:12.625] [info] Received renderer-ready message!
[2024-12-01 16:16:12.625] [info] Sending queued message loading-progress { status: ‘python-setup’ }
[2024-12-01 16:16:12.631] [info] Creating virtual environment at F:\ComfyUI_Desktop\ComfyUI.venv with python 3.12.4
[2024-12-01 16:16:12.631] [info] Running uv command: &“C:\Users\evila\AppData\Local\Programs@comfyorgcomfyui-electron\resources\uv\win\uv.exe” venv --python 3.12.4
[2024-12-01 16:16:12.637] [error] Error creating virtual environment: Error: File not found:

@rhuang Does this log help at all?

Thank you! Does this file exist?

Yes, it’s 41,211 KB

Is there nothing after the “File is not found” in the logs? Would you mind downloading the latest version and trying again?

I tried with the latest installer (v0.3.28) here is the complete log file:

[2024-12-05 19:59:51.829] [info]  Creating ComfyUI directories in F:\ComfyUI_Desktop\ComfyUI
[2024-12-05 19:59:51.831] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\custom_nodes
[2024-12-05 19:59:51.832] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\input
[2024-12-05 19:59:51.832] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\output
[2024-12-05 19:59:51.848] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\user
[2024-12-05 19:59:51.849] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\user\default
[2024-12-05 19:59:51.850] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models
[2024-12-05 19:59:51.850] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\checkpoints
[2024-12-05 19:59:51.851] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\clip
[2024-12-05 19:59:51.851] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\clip_vision
[2024-12-05 19:59:51.852] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\configs
[2024-12-05 19:59:51.852] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\controlnet
[2024-12-05 19:59:51.853] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\diffusers
[2024-12-05 19:59:51.854] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\diffusion_models
[2024-12-05 19:59:51.854] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\embeddings
[2024-12-05 19:59:51.854] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\gligen
[2024-12-05 19:59:51.855] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\hypernetworks
[2024-12-05 19:59:51.856] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\loras
[2024-12-05 19:59:51.856] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\photomaker
[2024-12-05 19:59:51.857] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\style_models
[2024-12-05 19:59:51.857] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\unet
[2024-12-05 19:59:51.858] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\upscale_models
[2024-12-05 19:59:51.858] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\vae
[2024-12-05 19:59:51.859] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\vae_approx
[2024-12-05 19:59:51.859] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\animatediff_models
[2024-12-05 19:59:51.860] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\animatediff_motion_lora
[2024-12-05 19:59:51.860] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\animatediff_video_formats
[2024-12-05 19:59:51.861] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\liveportrait
[2024-12-05 19:59:51.862] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\insightface
[2024-12-05 19:59:51.862] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\insightface\buffalo_1
[2024-12-05 19:59:51.863] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\blip
[2024-12-05 19:59:51.863] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\blip\checkpoints
[2024-12-05 19:59:51.864] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\CogVideo
[2024-12-05 19:59:51.865] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\xlabs
[2024-12-05 19:59:51.865] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\xlabs\loras
[2024-12-05 19:59:51.866] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\xlabs\controlnets
[2024-12-05 19:59:51.867] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\layerstyle
[2024-12-05 19:59:51.867] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\LLM
[2024-12-05 19:59:51.868] [info]  Created directory: F:\ComfyUI_Desktop\ComfyUI\models\Joy_caption
[2024-12-05 19:59:51.869] [info]  Wrote settings to F:\ComfyUI_Desktop\ComfyUI\user\default\comfy.settings.json: {
  "Comfy-Desktop.AutoUpdate": true,
  "Comfy-Desktop.SendStatistics": true,
  "Comfy.ColorPalette": "dark",
  "Comfy.UseNewMenu": "Top",
  "Comfy.Workflow.WorkflowTabsPosition": "Topbar",
  "Comfy.Workflow.ShowMissingModelsWarning": true,
  "Comfy.Server.LaunchArgs": {}
}
[2024-12-05 19:59:51.870] [info]  Creating model config files in C:\Users\evila\AppData\Roaming\ComfyUI\extra_models_config.yaml
[2024-12-05 19:59:51.876] [info]  Created extra_model_paths.yaml at C:\Users\evila\AppData\Roaming\ComfyUI\extra_models_config.yaml
[2024-12-05 19:59:52.132] [info]  Server start
[2024-12-05 19:59:52.134] [info]  Using uv at C:\Users\evila\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\uv\win\uv.exe
[2024-12-05 19:59:52.141] [info]  Received renderer-ready message!
[2024-12-05 19:59:52.142] [info]  Sending queued message  loading-progress { status: 'python-setup' }
[2024-12-05 19:59:52.152] [info]  Creating virtual environment at F:\ComfyUI_Desktop\ComfyUI\.venv with python 3.12.4
[2024-12-05 19:59:52.153] [info]  Running uv command: &"C:\Users\evila\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\uv\win\uv.exe" venv --python 3.12.4
[2024-12-05 19:59:52.168] [error] Error creating virtual environment: Error: File not found:

I also tried deleting
C:\Users\evila\AppData\Local\Programs@comfyorgcomfyui-electron
C:\Users\evila\AppData\Roaming\ComfyUI
and
F:\ComfyUI_Desktop\ComfyUI
the running it again as admin. The log looks the same. If I leave the installer open, this gets added to the log file:

[2024-12-05 20:04:22.961] [error] @todesktop/runtime: alwaysResolve: Promise timed out after 30000ms
[2024-12-05 20:04:23.118] [info]  @todesktop/runtime: Checking for update
[2024-12-05 20:04:23.118] [info]  @todesktop/runtime: AutoUpdater: checking-for-update
[2024-12-05 20:04:23.122] [info]  @todesktop/runtime: Generated new staging user ID: 5aa908ee-1484-5555-b1be-6392d68ba779
[2024-12-05 20:04:23.692] [info]  @todesktop/runtime: Update for version 0.3.28 is not available (latest version: 0.3.28, downgrade is allowed).
[2024-12-05 20:04:23.693] [info]  @todesktop/runtime: AutoUpdater: update-not-available {
  version: '0.3.28',
  files: [
    {
      url: 'ComfyUI Setup 0.3.28 - Build 241205j1yqe4b31-x64.exe',
      sha512: 'pp+KfCW27gzmo2yx8hrE14A1N+Iy6UpcjiQvFNrGYKVD/46bHRUvRunOmIYyeAPnqEDJTUViGKdZM1bbf2nADg==',
      size: 111845384
    }
  ],
  path: 'ComfyUI Setup 0.3.28 - Build 241205j1yqe4b31-x64.exe',
  sha512: 'pp+KfCW27gzmo2yx8hrE14A1N+Iy6UpcjiQvFNrGYKVD/46bHRUvRunOmIYyeAPnqEDJTUViGKdZM1bbf2nADg==',
  releaseDate: '2024-12-05T21:36:35.043Z'
}

it looks to me like it’s not successfuly creating the .venv folder.

Confirming I have the same issue (uv.exe exists but it fails to find a file, and I also suspect an issue with venv). Also tried deleting files and reinstalling, to no avail.

[2024-12-07 10:53:23.256] [info]  Creating virtual environment at C:\Users\max-private\Local Documents\ComfyUI\.venv with python 3.12.4
[2024-12-07 10:53:23.257] [info]  Running uv command: &"C:\Users\max-private\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\uv\win\uv.exe" venv --python 3.12.4
[2024-12-07 10:53:23.291] [error] Error creating virtual environment: Error: File not found: 

Also using 0.3.28 (latest, as of the time of this post, Dec 7)