I use pyqgis in standalone apps and I have defined paths in Windows and Python paths to take python API from outside QGIS.
I have created some simple tools using pygis and GDAL in standalone script using Python editor and all work fine without error
GDAL work nice.
Now I want to use pycharm editor and I have big problems.
First, it shows me two interpreter
but have some paths.
Now in pycharm if I use
python.exe, it shows me dll error in
qgis.core. If i use python from QGIS then I have
imports error in other packages i need.
Why does it do that? In python, IDLE works fine.
Here the windows define paths :
C:\OSGeo4W64\apps\qgis-ltr\python C:\OSGeo4W64\apps\qgis-ltr\plugins C:\OSGeo4W64\apps\Python27\Lib\site-packages
C:\OSGeo4W64\bin C:\OSGeo4W64\apps\qgis-ltr\bin C:\OSGeo4W64\share\gdal C:\Python27\ C:\Python27\Scripts
I think so the problems is the paths.
Any idea how to fix that?
My quest is simple i think, but i don#t know how to fix it. I have installed python version 2.7.13 QGIS have his python... if in the define paths QGIS python path is below from PYTHON path then QGIS python API don't work, if I change order and is above then work but recognizes site-packages from QGIS PYTHON ONLY...that I think is error