i am trying to set a venv to use qgis processing algorithms in a standalone python script. since i am using sublime text, i created a build system and provided the path to python.exe file that gets downloaded with qgis. after creating venv i ran this
from qgis.core import *
but it throwed an error saying that PyQt5.QtCore module is not there. So i activated the venv and installed PyQt5 with the command
pip install PyQt5==5.15.3
. then the above line worked but when i ran the following code
from qgis.core import *
import qgis.utils
it is throwing this error: RuntimeError: qgis._gui cannot import type '\ufffd\ufffd\ufffd\ufffd' from PyQt5.QtCore
perhaps installing PyQt5 separately was a bad idea but because of the first error i had to.
i am on windows and i need to run it on sublime text or jupyter notebook. please provide any sources or solutions that you are aware of. thank you in advance.