I've tried several previous answers to similar questions - no luck.
I run Win7. I installed QGIS 2.2.0 using the OSGeo4W 32-bit installer.
Problem 1) from qgis.core import * failed. Solution 1) After everything related to setting Path and PYTHONPATH variables failed, I had to copy C:\OSGeo4W\apps\qgis\python\qgis to C:\Python27\Lib\site-packages (and yes, including C:\OSGeo4W\apps\qgis\python\qgis in both Path and PYTHONPATH did NOT work).
Problem 2) The above approach got the qgis.core import started, but resulted in the following error message related to QgsFeature and QgsGeometry:
Traceback (most recent call last):
File "D:\Research\inhaca\OBIA\model_script.py", line 1, in <module>
from qgis.core import *
File "C:\Python27\lib\site-packages\qgis\__init__.py", line 35, in <module>
from qgis.core import QgsFeature, QgsGeometry
ImportError: DLL load failed: The specified module could not be found.
Now I'm lost. I tried copying all files from C:\OSGeo4W\apps\qgis\include and C:\OSGeo4W\apps\qgis\lib to the respective (include and Lib) folders in C:\Python27 - still didn't work. I'm fumbling in the dark here, any pointers?