Files
glibsonoran-Plush-for-ComfyUI/Fix_Google_httpx_Windows.bat
T

17 lines
649 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
REM Force‑reinstall the incompatible packages
REM Copy this file into the "\scripts" subdirectory of the python installation used for ComfyUI
REM Then run this file
pip install --force-reinstall -v "google.genai==1.5.0"
pip install --force-reinstall -v "httpx==0.27.2"
REM Display installed versions for verification
echo.
echo Installed versions:
for /f "tokens=2 delims=: " %%A in ('pip show google.genai ^| findstr /R /C:"Version"') do set GG_VER=%%A
for /f "tokens=2 delims=: " %%A in ('pip show httpx ^| findstr /R /C:"Version"') do set HTTPX_VER=%%A
echo google.genai version: %GG_VER%
echo httpx version: %HTTPX_VER%
pause