May-05-2018, 10:32 AM
Hi
I'm trying to write my first Python GUI application and have installed Anaconda 5.1 (Mac OSX) which includes PYQT5 and Python 3.6.
I'm also using the included VS Code as an IDE
I'm trying to use the above import statements from the beginning of a tutorial I ‘m following.
E0611:No name 'QApplication' in module 'PyQt5.QtWidgets'
E0611:No name 'QWidget' in module 'PyQt5.QtWidgets'
It looks like PYQT5 needs additional configuration to get working as I assume the errors relate to the complier not locating PYQT5. Does anyone know what I can do to clear these errors?
Thanks in advance
I'm trying to write my first Python GUI application and have installed Anaconda 5.1 (Mac OSX) which includes PYQT5 and Python 3.6.
I'm also using the included VS Code as an IDE
I'm trying to use the above import statements from the beginning of a tutorial I ‘m following.
import sys from PyQt5.QtWidgets import QApplication, QWidgetbut I'm getting an error stating
E0611:No name 'QApplication' in module 'PyQt5.QtWidgets'
E0611:No name 'QWidget' in module 'PyQt5.QtWidgets'
It looks like PYQT5 needs additional configuration to get working as I assume the errors relate to the complier not locating PYQT5. Does anyone know what I can do to clear these errors?
Thanks in advance