The solution is a bit hacky but quite simple: Go to your Python folder, like
C:\Python33\Lib\site-packages\spyderlib\widgets\externalshellthere is file sitecustomize.py waiting for you. For safety make copy of that file as we are going to change it a little bit.
Now open it and find the lines (should be 247 to 249):
if os.environ.get("INSTALL_QT_INPUTHOOK", "").lower() == "true":And change the last from
if os.environ["QT_API"] == 'pyqt':
from PyQt4 import QtCore
from PyQt4 import QtCoreto
from PyQt5 import QtCoreNow Spyder imports the QtCore module from PyQt 5 instead of PyQt 4. The hook is beeing installed on the first loading of QtCore, so when Sypder launches its consoles now, everything is fine.
Happy playing!
Keine Kommentare:
Kommentar veröffentlichen