Fail to Install python packages Python packages that are required to run ComfyUI are not installed

Any bros know how to fix this, just happen today need upgrade and the log said as below,

3 Likes

1 Like

Hi ak8964,

You can delete the “uv“ folder (C:\Users\userName\AppData\Roaming\uv) and reinstall comfyUI

多试几次,在中国你懂的,实在不行科学上网。我是大清早下载才成功的。

任务管理器中关掉你所有的Python(因为我也不知道哪个Python是comfyui的, 并且我当时没有启动扔和其他的python程序),或者重启重新打开comfyui就行. 原理应该是之前没关干净, 这个目录被其他进程占用.

我挂梯子也经常这样

PS D:\ComfyUI> & “C:\Program Files\ComfyUI\resources\uv\win\uv.exe” “venv” “–python” “3.12” “–python-preference” “only-managed”
Using CPython 3.12.11
Creating virtual environment at: .venv
? A virtual environment already exists at .venv. Do you want to replace it? [y/n] › yes

hint: Use the --clear flag or set UV_VENV_CLEAR=1 to skip this prompt

我的卡在这里,一直转圈。

2 Likes

我的也是这个情况,有解决方法了吗

Just tried this and it broke my install

I restarted comfy several times, clearing UV cache, restarting Comfy for the 10th time, running the update 3 more times, and finally it booted and is running v0.5.57, Hopefully is sticks this time, but even in past 10 minutes it reverted to v0.5.52 once.

Same with you, I am in France.

我跟你一个情况,我在法国。

桌面版在安装的时候,创建虚拟环境后没有将需要的python包放入,也就是下载的包全在其它缓存文件无法移动到venv文件。且每次在重新启动的时候都会从镜像下载torch,而不是先检查是否存在,无限下载,然后卡住。所以手动安装吧,使用镜像下载资源,1个小时搞定。

我也遇到相同情況,請問所以具體該怎麽解決呢?
嘗試了clear UV cache,沒有用

Hi guys,

OS error 5 is “access denied” - if you are getting that, it signals a permissions issue. Are you running the app with enough permissions to write to C:\Comfyui\.venv?

@redwin @likha

We would love to provide some assistance. Could you please upload your main.log (from the time you had an error), and post a screenshot of the exact problem(s) you’re facing? There may be subtle differences that could indicate a very different problem.

It may be best to start a new thread for your issues, as they are unlikely to be the same thing.

I have the same issue. Were you able to find a solution?

I got this error:

Hi @LordofRed, you have a different error - can you please create a new thread?

When you create the new issue, please include the full logs or upload to:
https://comfy.org/upload-logs

Log file locations:

What worked for me is deleting cash by bottom left button in starting window (not manually). Then install python button. I also always check if the installation folder for comfyui is set not set to reading only mode.

Exactly

这个解决了么。是啥问题