pyqt / python-qt5

Unofficial PyQt5 via PyPI for Python 2.7 64-bit on Windows
GNU General Public License v3.0
280 stars 78 forks source link

import QApplication not working on x64 #11

Closed ruidc closed 9 years ago

ruidc commented 9 years ago

running the pip version, 0.1.8 and the suggested test code:

>>>from PyQt5 import QtWidgets
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.

should I have done any preparation before running the pip command?

mottosso commented 9 years ago

No, you're right, I've updated the Readme to the current 5.4 release, but not updated the pip distribution due to some issues.

For the current version, you'll need the Visual C++ 2013 redistributable. http://www.microsoft.com/en-us/download/details.aspx?id=40784

Sorry about that, it'll go away once 5.4 can be put up on PyPI.

Alternatively, you can pip install from GitHub, which will include it for you (but isn't as well-tested).

See here: https://github.com/pyqt/python-qt5/issues/7#issuecomment-74143247

Best, Marcus

mottosso commented 9 years ago

Assuming this works for you now.