ModuleNotFoundError: No module named 'PyQt5.QtCore' Module = self._system_import(name, *args, **kwargs)įile "C:\OSGEO4~1\apps\qgis\python\qgis\_init_.py", line 70, in įile "C:\OSGEO4~1\apps\qgis\python\qgis\PyQt\QtCore.py", line 24, in batch file opens P圜harm in which I try to import re in a new script, after stting up that the Python Interpreter is the on from QGIS (direction :C:\OSGeo4W64\apps\Python37\python.exe)īut when I try to import re, I get this message: Traceback (most recent call last):įile "C:\Program Files\JetBrains\P圜harm\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import Start "P圜harm aware of Quantum GIS" /B "C:\Program Files\JetBrains\P圜harm\bin\pycharm64.exe"Īfter I run this file, I obtain a cmd.exe window in which I try to import re and PyQt5 to see if it works correctly: Set PYTHONHOME=%OSGEO4W_ROOT%\apps\Python37 Set PYTHONPATH=%PYTHONPATH% %OSGEO4W_ROOT%\apps\qgis\python Path %PATH% C:\OSGeo4W64\apps\Python37\Scripts Path %PATH% %OSGEO4W_ROOT%\apps\grass\grass76\lib In order to create the link between Python and the qgis module, i made the Batch file like this: off I am quite new with Python programming and with setting up a work environnement. I would like to work on Python script with tools from qgis in a standalone software (like Pycharm or IDLE).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |