在运行workflow时出现:Numpy is not available,MAC以及Windows都有这个问题
Numpy is not available
File "C:\Users\Administrator\comflowy\ComfyUI\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "C:\Users\Administrator\comflowy\ComfyUI\ComfyUI\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "C:\Users\Administrator\comflowy\ComfyUI\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "C:\Users\Administrator\comflowy\ComfyUI\ComfyUI\nodes.py", line 1510, in load_image
image = torch.from_numpy(image)[None,]
MAC以及Windows系统曾经都部署过sd webui,不知道是不是当时安装的Python与现在的有冲突; 都尝试过卸载Python并重新安装numpy,但是没有用。 运行日志.txt
点击右上角 terminal,点击 pip install , 输入" numpy==1.24.4"
Hi, I met the same error and then uninstall and install the version 1.24.4 (by pip install/ uninstall) but it not fix the above error.
I post the solution here if anyone met the same error but not fixed when try install numpy==1.24.4:
- Find the path of site-packages (you will find it in log). Mine is "C:\tools\Miniconda3\envs\comflowy\Lib\site-packages"
- Remove "numpy**" relative folder/files
- Stop the server
- Pip Install, then type "numpy==1.24.4"
- Restart the server then retry generate.
Hope it help.
点击右上角 terminal,点击 pip install , 输入" numpy==1.24.4"
一样的问题,用你的方法也没解决 Installing collected packages: numpy Attempting uninstall: numpy Found existing installation: numpy 1.24.4 Uninstalling numpy-1.24.4: Successfully uninstalled numpy-1.24.4 Successfully installed numpy-2.2.3
软件自动又会换成最新的