mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-18 10:20:16 +08:00
1.8 KiB
1.8 KiB
Preinstall Enhancements PR
Overview
This PR contains enhancements to the ComfyUI startup script (run_comfyui.bat) that improve the user experience for Windows users by automatically checking dependencies, detecting virtual environments, and offering to install missing packages.
Changes Included
Files Changed
run_comfyui.bat- Enhanced batch file with:- UTF-8 encoding support for proper Unicode display
- Comprehensive dependency checking (critical and optional)
- Virtual environment detection and warnings
- CUDA PyTorch auto-installation with progress bars
- User-friendly error messages and troubleshooting tips
- ASCII art banner with "Comfy" text
create_shortcut.ps1- PowerShell script for desktop shortcut creation
Key Features
- Automated Dependency Checking: Checks all critical Python dependencies before launching
- CUDA PyTorch Detection: Automatically detects CPU-only PyTorch and offers to install CUDA version
- Progress Bars: Shows progress during pip installations
- User-Friendly Prompts: Clear, interactive prompts for installation options
- Error Handling: Detailed error messages with troubleshooting steps
PR Status
- Branch:
preinstall-enhancements - Base:
master - Status: Ready for PR submission
- Commits: 2 commits (run_comfyui.bat enhancements, create_shortcut.ps1)
Testing Recommendations
- Test in clean environment with no dependencies
- Test with missing critical dependencies
- Test with missing optional dependencies
- Test CPU-only PyTorch detection and installation
- Test virtual environment detection
- Test error handling scenarios
Notes
- All changes are backward compatible
- No breaking changes to existing functionality
- Works with both system Python and virtual environments