diff -r 92ed63434dce -r bcca9eba56a1 install.py --- a/install.py Thu Jun 14 19:20:52 2018 +0200 +++ b/install.py Fri Jun 15 11:56:58 2018 +0200 @@ -1242,7 +1242,10 @@ ok = False print("{0}\n\nShall '{1}' be installed using pip? (Y/n)" .format(message, packageName), end=" ") - answer = input() + if sys.version_info[0] == 2: + answer = raw_input() # __IGNORE_WARNING__ + else: + answer = input() if answer in ("", "Y", "y"): exitCode = subprocess.call( [sys.executable, "-m", "pip", "install", packageName]) @@ -1289,10 +1292,14 @@ try: from PyQt5.QtCore import qVersion except ImportError as msg: - installed = pipInstall( - "PyQt5", - "PyQt5 could not be detected.\nError: {0}".format(msg) - ) + if sys.version_info[0] == 2: + # no PyQt5 wheels available for Python 2 + installed = False + else: + installed = pipInstall( + "PyQt5", + "PyQt5 could not be detected.\nError: {0}".format(msg) + ) if installed: # try to import it again try: @@ -1302,6 +1309,8 @@ print('Error: {0}'.format(msg)) exit(1) else: + print('Sorry, please install PyQt5.') + print('Error: {0}'.format(msg)) exit(1) print("Found PyQt5")