Python

How to set environment for PyQGIS 3 in PyCharm

Prerequirement Install PyCharm Install OSGeo4W Network Installer choose QGIS desktop and QGIS full desktop Setting the Environment Create pygis.cmd To setup the environment for PyQGIS in windows, you should get into the directory of ./OSGeo4W and create a pyqgis.cmd script. The following script is written by me according to the computer environment. Another to create a .cmd script is to get into the folder ./OSGeo4W/bin/python.bat and copy it to the main directory .