diff options
author | Luca Tringali <tringalinvent@libero.it> | 2019-01-22 19:14:01 +0100 |
---|---|---|
committer | Luca Tringali <tringalinvent@libero.it> | 2019-01-22 19:14:01 +0100 |
commit | f728342b730a236dd6e648e3f0dfee1028dbd293 (patch) | |
tree | 139783742f65a9b50166fc57df8572ed07d2cf7c /termostato.py | |
parent | 4c8de2f02ce8b8252a41c0246705778d90adb389 (diff) |
raspi-config
Diffstat (limited to 'termostato.py')
-rwxr-xr-x | termostato.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/termostato.py b/termostato.py index a91af56..55f38fc 100755 --- a/termostato.py +++ b/termostato.py @@ -12,14 +12,12 @@ except: try: from tkinter import messagebox messagebox.showinfo("Installazione, attendi prego", "Sto per installare le librerie grafiche e ci vorrà del tempo. Premi Ok e vai a prenderti un caffè.") - pip.main(["install", "--index-url=http://download.qt.io/snapshots/ci/pyside/5.9/latest/", "pyside2", "--trusted-host", "download.qt.io"]) - #pip install --index-url=http://download.qt.io/snapshots/ci/pyside/5.9/latest/ pyside2 --trusted-host download.qt.io - #pip install PySide2 + pip.main(["install", "PySide2"]) from PySide2.QtWidgets import QApplication except: try: from pip._internal import main - main(["install", "--index-url=http://download.qt.io/snapshots/ci/pyside/5.9/latest/", "pyside2", "--trusted-host", "download.qt.io"]) + main(["install", "PySide2"]) from PySide2.QtWidgets import QApplication except: sys.exit(1) |