I'd like to setup PyCharm for PyQGIS 3 development. There is a good guide for PyQGIS 2, but those steps only make python 2 available, and I want to use python 3. Selecting python3 as interpreter returns an error:
Cannot setup a python SDK at python 3.6.0 (C:\OSGeo4W64\bin\python3.exe).
The SDK seems invalid
My .bat file has the following config:
SET OSGEO4W_ROOT=C:\OSGeo4W64
SET QGISNAME=qgis
SET QGIS=%OSGEO4W_ROOT%\apps\%QGISNAME%
SET QGIS_PREFIX_PATH=%QGIS%
SET PYCHARM="C:\Program Files (x86)\JetBrains\PyCharm 2016.3.2\bin\pycharm.exe"
CALL %OSGEO4W_ROOT%\bin\o4w_env.bat
SET PATH=%PATH%;%QGIS%\bin
SET PYTHONPATH=%OSGEO4W_ROOT%\bin;%PYTHONPATH%
start "PyCharm aware of QGIS" /B %PYCHARM% %*