So, I'm trying to run a basic code:
from PyQt5.QtWidgets import QMainWindow, QPushButton, QApplication
import sys
class Example(QMainWindow):
def __init__(self):
super().__init__()
btn = QPushButton("Hello World!", self)
btn.move(50,75)
self.setGeometry(100, 100, 200,150)
self.setWindowTitle('PyQt Window')
self.show()
if __name__ == '__main__':
app = QApplication(sys.argv)
ex = Example()
sys.exit(app.exec_())
And this error keeps popping up:
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyQt5/QtWidgets.abi3.so, 2): Symbol not found: _futimens
Referenced from: /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib
in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore
I'm working on Python 3.8, and I installed PyQT5 with 'pip3 install pyqt5'. I tried with homebrew but it doesn't work because I have a super old version of macOS. So far, I've only worked with SQLite Studio at best, with no issues. (So, yeah, super beginner here). Any solutions?