pyqt / python-qt5

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

ModuleNotFoundError: No module named 'util' #38

Closed siemlohuis closed 6 years ago

siemlohuis commented 6 years ago

When I try to install python-qt5 and I do:

python -c "import util;util.createqtconf()"

In the windows cmd I get the error:

Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'util'

How can I solve this? Thanks for reading!

mottosso commented 6 years ago

Make sure you're in the python-qt5 directory when running it.

$ git clone https://github.com/pyqt/python-qt5.git
$ cd python-qt5
$ python -c "import util;util.createqtconf()"

As the util.py file is in that directory, here.