I'm trying to create a PyQGIS standalone script in windows 10 but I have some errors.
First I have read this post and I follow comment of Mr. @caiohamamura but I have semi-success I think, and I don't why happen this error.
first :
Your PYTHONHOME should be:
C:\OSGeo4W64\apps\Python27
Your PATH should include (in the beggining):
C:\OSGeo4W64\bin; C:\OSGeo4W64\apps\qgis-ltr-dev\bin
PYTHONPATH should have:
C:\OSGeo4W64\apps\qgis-ltr-dev\python
C:\OSGeo4W64\apps\qgis-ltr-dev\python\plugins
C:\OSGeo4W64\bin\python27.zip
C:\OSGeo4W64\apps\Python27\DLLs
C:\OSGeo4W64\apps\Python27
C:\OSGeo4W64\apps\Python27\lib
C:\OSGeo4W64\apps\Python27\lib\site-packages
and finally the test.
Python in cmd prompt:
Python in OSGeo shell :
Why in OSGeo shell I take this error :
ImportError: DLL load failed: ─ίΊ ▐ΪάΊ ϊΫΊάΪⁿ Ίά ίΊΪΎΏώ≤Ϊί▀ ύ ΆάϋΎ±ώ≤Ή▌Ίύ ΈίώΪ.
What am I doing wrong? What is the difference?