The issue you're encountering is related to PyQt5's license acceptance prompt during installation on Termux (Android). The prompt expects interactive input (yes/no), but Termux's terminal environment sometimes doesn't handle this correctly, especially with pip's non-interactive mode.
--no-input or --yes Flag (Not Recommended for PyQt5)pip install --yes or --no-input would auto-accept licenses, but PyQt5 explicitly blocks this for legal reasons. This won't work here.PYQT_ACCEPT_LICENSE environment variable. Set it to yes before installing:
bashexport PYQT_ACCEPT_LICENSE=yes pip install pyqt5==5.15.4
bashexport PYQT_ACCEPT_LICENSE=GPU pip install pyqt5==5.15.4
yes Command to Pipe Inputyes to the prompt:
bashyes | pip install pyqt5==5.15.4
bashpip install PyQt5-5.15.4-*.whl
* with the correct wheel filename for your architecture.5.15.9 or 6.x), as some versions handle license acceptance differently:
bashpip install pyqt5==5.15.9
bashtermux-wake-lock # Prevent screen from turning off pip install pyqt5==5.15.4
screen or tmux to ensure the prompt is properly captured.--confirm-license:
bashpip install pyqt5==5.15.4 --confirm-license
Start with Option 2 (PYQT_ACCEPT_LICENSE) or Option 3 (yes | pip install). If those fail, try Option 4 (manual wheel install).
Vibe can make mistakes. Check answers. Learn more