I have a error in console python, I tried using pyqgis without qgis interface.

My problem is when I use: from qgis.core import *

Console's the message is:

from qgis.core import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\OSGeo4W64\apps\qgis\python\qgis\core\__init__.py", line 25, in <module>
    from qgis._core import *
ImportError: DLL load failed: No se encontr¾ el proceso especificado.

my variables are:


C:\Python27\Scripts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\Program Files\dotnet\;C:\Program Files\PuTTY\;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Python27;C:\OSGeo4W64\apps\qgis\bin;C:\OSGeo4W64\apps\Python27\Lib\site-packages\PyQt4;C:\OSGeo4W64\apps\qgis-dev\bin;C:\OSGeo4W64\apps\qgis-ltr\bin;C:\OSGeo4W64\apps\qgis-ltr-dev\bin;C:\OSGeo4W64;C:\OSGeo4W64\bin;
PYTHONPATH: C:\OSGeo4W64\apps\qgis\python;C:\Users\Paola Flores\python-qt5;C:\OSGeo4W64\apps\Python27;C:\OSGeo4W64\apps\Python27\Lib\site-packages;C:\OSGeo4W64\apps\qgis\python\qgis;C:\OSGeo4W64\apps\qgis-ltr\bin;C:\OSGeo4W64\apps\qgis-dev\bin;C:\OSGeo4W64\apps\qgis-ltr-dev\bin;C:\OSGeo4W64;C:\OSGeo4W64\apps\qgis-dev\python;C:\OSGeo4W64\apps\qgis-ltr\python;C:\OSGeo4W64\apps\qgis-dev\;
  • 1
    Your environment looks like a mess. Which python/qgis do you use? – Andreas Müller Jul 16 '19 at 8:23
  • if you are using QGIS 3 ,check this answer gis.stackexchange.com/a/289964/49538 – Fran Raga Jul 16 '19 at 9:12
  • I use QGIS 3.6.3 'noose' and python 27, but I tried with Python 37 and I have the same problem. I want use pyqgis without QGIS' interface. – Paofc97 Jul 18 '19 at 20:46

QGIS 3 cannot be used with Python 2.

I've described the whole process in https://anitagraser.com/2019/03/03/stand-alone-pyqgis-scripts-with-osgeo4w/

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.