This is a straightforward question but I've been looking for a solution for such a long time. The document "IDE Settings for Developing QGIS" says: 'on Windows you need to make sure you that you have the same environment settings and use the same libraries and interpreter as QGIS.'
How can I use another Python interpreter (e.g the one in some Python distributions such as Winpython) with the QGIS environment settings (I almost know how to do that by using batch files to set the correct environment settings) and then how can I use the QGIS essential libraries?
I'm asking this for the Windows operating system. If anyone has any idea on how to do it for QGIS 3.x that is much more preferred.