2017-04-09 4 views
0

Ich wollte etwas Python3 Entwicklung machen.ImportError: Kein Modul namens 'PyQT5' Ubuntu 16.10

ich getan habe:

$ sudo apt-get install python3-pyqt5 

Aber es funktioniert nicht:

python3

$ python3 
Python 3.5.2+ (default, Sep 22 2016, 12:18:14) 
[GCC 6.2.0 20160927] on linux 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import PyQT5 
Traceback (most recent call last): 
File "<stdin>", line 1, in <module> 
ImportError: No module named 'PyQT5' 
>>> 
+0

Sie müssen verwenden: 'Import PyQt5' – eyllanesc

+0

Haha! Verdammt, das ist böse! xD –

Antwort

2

Sie müssen es pip installieren:

pip3 install PyQt5 
1

Auch wenn man liest oft "QT", den Paketnamen i s nicht "PyQT5", sondern "PyQt5" mit einem Kleinbuchstaben "t" am Ende.

+0

Beachten Sie, dass die Aussprache [richtig] (https://en.wikipedia.org/wiki/Qt_ (Software)) auch "niedlich" ist, obwohl ;-) –