import subprocess try: subprocess.check_call(["pip", "install", "PyQt5"]) except subprocess.CalledProcessError as e: print("Ошибка установки:", e)