I tried to initialize QGIS from a standalone script, but it's giving the error (find in an image).
I reinstalled, but the same issue occurred.
code:
from qgis.core import *
QgsApplication.setPrefixPath(r"C:\Program Files\QGIS 3.12", True)
qgs = QgsApplication([], False)
qgs.initQgis()
vlayer = QgsVectorLayer(path_to_airports_layer, "Airports layer", "ogr")
QgsProject.instance().addMapLayer(vlayer)
qgs.exitQgis()
How can I initialize correctly?