The statement
from PyQt5 import QtWidgets
yields ImportError: DLL load failed: The specified module could not be found.
, but the statement
from PyQt5 import sdklfjsdlfkj
yields ImportError: cannot import name 'dfgdfgdfg'
. This is confusing to me, because it's not like in the first snippet I'm trying to import something from QtWidgets
. I mean, the QWidgets
module is either there or it isn't, right? How is it possible that it's there "enough" to avoid a cannot import name
, but also not there enough to be able to import it?