[GH-ISSUE #1667] [ComfyUI-Manager] PyTorch is not installed #721

Open
opened 2026-10-27 21:21:26 +00:00 by bsakaguchi · 12 comments
Owner

Originally created by @chensyo on GitHub (Mar 15, 2025).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/1667

After the update, this error keeps coming up. I changed back to the previous version and it worked fine. Actually, I installed torch and comfyui-frontend-package==1.11.8 correctly.
[ComfyUI-Manager] PyTorch is not installed
ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'C:\ProgramData\anaconda3\envs\comfyui_svdq\Lib\site-packages\comfyui_frontend_package'
Consider using the --user option or check the permissions.

[ComfyUI-Manager] Failed to restore comfyui-frontend-package
Command '['C:\ProgramData\anaconda3\envs\comfyui_svdq\python.exe', '-s', '-m', 'pip', 'install', 'comfyui-frontend-package==1.11.8']' returned non-zero exit status 1.

Originally created by @chensyo on GitHub (Mar 15, 2025). Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/1667 After the update, this error keeps coming up. I changed back to the previous version and it worked fine. Actually, I installed torch and comfyui-frontend-package==1.11.8 correctly. [ComfyUI-Manager] PyTorch is not installed ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'C:\\ProgramData\\anaconda3\\envs\\comfyui_svdq\\Lib\\site-packages\\comfyui_frontend_package' Consider using the `--user` option or check the permissions. [ComfyUI-Manager] Failed to restore comfyui-frontend-package Command '['C:\\ProgramData\\anaconda3\\envs\\comfyui_svdq\\python.exe', '-s', '-m', 'pip', 'install', 'comfyui-frontend-package==1.11.8']' returned non-zero exit status 1.
Author
Owner

@ltdrdata commented on GitHub (Mar 15, 2025):

Try execute this command in your conda environment.

C:\ProgramData\anaconda3\envs\comfyui_svdq\python.exe -s -m pip install comfyui-frontend-package==1.11.8
<!-- gh-comment-id:2726956131 --> @ltdrdata commented on GitHub (Mar 15, 2025): Try execute this command in your conda environment. ``` C:\ProgramData\anaconda3\envs\comfyui_svdq\python.exe -s -m pip install comfyui-frontend-package==1.11.8 ```
Author
Owner

@chensyo commented on GitHub (Mar 16, 2025):

仍然不能解决,移出这个节点就不会报错,而且功能都正常,放进去就报错。回退版本3.30.8也不会报错

<!-- gh-comment-id:2727215133 --> @chensyo commented on GitHub (Mar 16, 2025): 仍然不能解决,移出这个节点就不会报错,而且功能都正常,放进去就报错。回退版本3.30.8也不会报错
Author
Owner

@ltdrdata commented on GitHub (Mar 16, 2025):

仍然不能解决,移出这个节点就不会报错,而且功能都正常,放进去就报错。回退版本3.30.8也不会报错

I meant to ask whether the command runs successfully without errors when executed.

I am trying to check whether the issue was caused by adding the -s option. In some environments, problems occur if -s is not included, so it was added.

<!-- gh-comment-id:2727477595 --> @ltdrdata commented on GitHub (Mar 16, 2025): > 仍然不能解决,移出这个节点就不会报错,而且功能都正常,放进去就报错。回退版本3.30.8也不会报错 I meant to ask whether the command runs successfully without errors when executed. I am trying to check whether the issue was caused by adding the `-s` option. In some environments, problems occur if `-s` is not included, so it was added.
Author
Owner

@chensyo commented on GitHub (Mar 17, 2025):

直接运行确实报错,但是加上它上面写的--user后缀后就能成功运行

Image

<!-- gh-comment-id:2727784826 --> @chensyo commented on GitHub (Mar 17, 2025): 直接运行确实报错,但是加上它上面写的--user后缀后就能成功运行 ![Image](https://github.com/user-attachments/assets/f14dbf95-943c-49b0-9bb5-57333142fe51)
Author
Owner

@ltdrdata commented on GitHub (Mar 17, 2025):

直接运行确实报错,但是加上它上面写的--user后缀后就能成功运行

Image

How about this?

C:\ProgramData\anaconda3\envs\comfyui_svdq\python.exe -m pip install comfyui-frontend-package==1.11.8
<!-- gh-comment-id:2729931036 --> @ltdrdata commented on GitHub (Mar 17, 2025): > 直接运行确实报错,但是加上它上面写的--user后缀后就能成功运行 > > ![Image](https://github.com/user-attachments/assets/f14dbf95-943c-49b0-9bb5-57333142fe51) How about this? ``` C:\ProgramData\anaconda3\envs\comfyui_svdq\python.exe -m pip install comfyui-frontend-package==1.11.8 ```
Author
Owner

@stalex91 commented on GitHub (Mar 17, 2025):

Same issue on ToT, Linux this time.
Requirement already satisfied: comfyui-frontend-package==1.11.8 in /home/user/.local/lib/python3.11/site-packages (1.11.8)

<!-- gh-comment-id:2729982686 --> @stalex91 commented on GitHub (Mar 17, 2025): Same issue on ToT, Linux this time. `Requirement already satisfied: comfyui-frontend-package==1.11.8 in /home/user/.local/lib/python3.11/site-packages (1.11.8) `
Author
Owner

@ltdrdata commented on GitHub (Mar 17, 2025):

Same issue on ToT, Linux this time. Requirement already satisfied: comfyui-frontend-package==1.11.8 in /home/user/.local/lib/python3.11/site-packages (1.11.8)

I am asking if this error is still occurring.

Image

<!-- gh-comment-id:2730027567 --> @ltdrdata commented on GitHub (Mar 17, 2025): > Same issue on ToT, Linux this time. `Requirement already satisfied: comfyui-frontend-package==1.11.8 in /home/user/.local/lib/python3.11/site-packages (1.11.8) ` I am asking if this error is still occurring. ![Image](https://github.com/user-attachments/assets/9452d55d-cabd-4779-a663-77fcb157213b)
Author
Owner

@stalex91 commented on GitHub (Mar 17, 2025):

I am sorry, a bit different reasons but the same issue here: trying to install ComfyUI-Manager, after first launch get:

[START] Security scan
[DONE] Security scan
ComfyUI-Manager: installing dependencies. (GitPython)
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/local/lib/python3.11/site-packages/wrapt-1.17.2.dist-info'
Consider using the --user option or check the permissions.

[ERROR] ComfyUI-Manager: Attempting to reinstall dependencies using an alternative method.
ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2025-03-17 15:02:15.187
** Platform: Linux
** Python version: 3.11.11 (main, Feb 14 2025, 02:33:26) [GCC 9.4.0]
** Python executable: /usr/bin/python
** ComfyUI Path: tools/ComfyUI
** ComfyUI Base Folder Path: tools/ComfyUI
** User directory: tools/ComfyUI/user
** ComfyUI-Manager config path: tools/ComfyUI/user/default/ComfyUI-Manager/config.ini
** Log path: tools/ComfyUI/user/comfyui.log
[ComfyUI-Manager] PyTorch is not installed
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/local/lib/python3.11/site-packages/comfyui_frontend_package'
Consider using the --user option or check the permissions.

[ComfyUI-Manager] Failed to restore comfyui-frontend-package
Command '['/usr/bin/python', '-s', '-m', 'pip', 'install', 'comfyui-frontend-package==1.11.8']' returned non-zero exit status 1.

Version 3.31 works just fine

<!-- gh-comment-id:2730096220 --> @stalex91 commented on GitHub (Mar 17, 2025): I am sorry, a bit different reasons but the same issue here: trying to install ComfyUI-Manager, after first launch get: > [START] Security scan > [DONE] Security scan > ComfyUI-Manager: installing dependencies. (GitPython) > ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/local/lib/python3.11/site-packages/wrapt-1.17.2.dist-info' > Consider using the `--user` option or check the permissions. > > [ERROR] ComfyUI-Manager: Attempting to reinstall dependencies using an alternative method. > ComfyUI-Manager: installing dependencies done. > ** ComfyUI startup time: 2025-03-17 15:02:15.187 > ** Platform: Linux > ** Python version: 3.11.11 (main, Feb 14 2025, 02:33:26) [GCC 9.4.0] > ** Python executable: /usr/bin/python > ** ComfyUI Path: tools/ComfyUI > ** ComfyUI Base Folder Path: tools/ComfyUI > ** User directory: tools/ComfyUI/user > ** ComfyUI-Manager config path: tools/ComfyUI/user/default/ComfyUI-Manager/config.ini > ** Log path: tools/ComfyUI/user/comfyui.log > [ComfyUI-Manager] PyTorch is not installed > ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/local/lib/python3.11/site-packages/comfyui_frontend_package' > Consider using the `--user` option or check the permissions. > > [ComfyUI-Manager] Failed to restore comfyui-frontend-package > Command '['/usr/bin/python', '-s', '-m', 'pip', 'install', 'comfyui-frontend-package==1.11.8']' returned non-zero exit status 1. Version 3.31 works just fine
Author
Owner

@ltdrdata commented on GitHub (Mar 17, 2025):

You should not use system python. The --user option tends to cause more issues in other environments, so I prefer to avoid using it whenever possible.

At the very least, the --user option cannot be used in a venv, and I am unsure what other potential issues it might cause outside of venv.

<!-- gh-comment-id:2730199727 --> @ltdrdata commented on GitHub (Mar 17, 2025): You should not use system python. The `--user` option tends to cause more issues in other environments, so I prefer to avoid using it whenever possible. At the very least, the `--user` option cannot be used in a `venv`, and I am unsure what other potential issues it might cause outside of venv.
Author
Owner

@chensyo commented on GitHub (Mar 18, 2025):

直接运行确实报错,但是加上它上面写的--user后缀后就能成功运行
Image

这个怎么样?

C:\ProgramData\anaconda3\envs\comfyui_svdq\python.exe -m pip install comfyui-frontend-package==1.11.8

这个就可以会正常显示安装

<!-- gh-comment-id:2731351273 --> @chensyo commented on GitHub (Mar 18, 2025): > > 直接运行确实报错,但是加上它上面写的--user后缀后就能成功运行 > > ![Image](https://github.com/user-attachments/assets/f14dbf95-943c-49b0-9bb5-57333142fe51) > > 这个怎么样? > > ``` > C:\ProgramData\anaconda3\envs\comfyui_svdq\python.exe -m pip install comfyui-frontend-package==1.11.8 > ``` 这个就可以会正常显示安装
Author
Owner

@ltdrdata commented on GitHub (Mar 18, 2025):

Update to latest version. This should be fixed.

<!-- gh-comment-id:2734040203 --> @ltdrdata commented on GitHub (Mar 18, 2025): Update to latest version. This should be fixed.
Author
Owner

@chensyo commented on GitHub (Mar 19, 2025):

Update to latest version. This should be fixed.
更新版本,已解决,感谢

<!-- gh-comment-id:2735313756 --> @chensyo commented on GitHub (Mar 19, 2025): > Update to latest version. This should be fixed. 更新版本,已解决,感谢
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/ComfyUI-Manager#721
No description provided.