Nevermind, the error is mine: I mistakenly started Python 2.7 and tried to import PyQt5 modules. ( the Python org should improve the error message for this situation where the interpreter and an extension module are compiled with different Unicode implementations.)