I am using Python Tools for Visual Studio 2013. Now I also want to use PyQt for my User Interface.
I successfully installed PyQt and used it in other IDEs (e.g. PyCharm). Now I want to import PyQt in Visual Studio 2013, but it down't work.
This code
from PyQt import QtGui
print('Hello World')
leads to the following error:
No module named 'PyQt'
I already added Qt.pyd
, QtCore.pyd
and QtGui.pyd
to the References of my Python project in Visual Studio 2013. But still, the PyQt cannot be found and is also not detected by Auto-completion.
Update
Shadow9043's advice solved the problem. However, I still got no code-completion for the PyQt classes. I get warnings when importing (Unable to resolve "PyQt") and I don't get the list of members when using PyQt classes.
Is there anyway to get VS2013 to "know" the PyQt classes?