I searched all the same questions, and none of them works for me, so i decided to ask this question in addition to those:
I installed QGIS 2.18 via this downloaded setup 'QGIS-OSGeo4W-2.18.11-1-Setup-x86_64.exe'.
and my PATH system variables are :
C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%PYTHONHOME%;%PYTHONHOME%\Scripts;C:\Program Files\QGIS 2.18\bin;%PATH%
my PATH user variables:
C:\Users\ash\AppData\Local\Programs\Python\Python36-32\Scripts\;C:\Users\ash\AppData\Local\Programs\Python\Python36-32\
PYTHONHOME :
C:\Program Files\QGIS 2.18\apps\Python27
PYTHONPATH :
C:\Program Files\QGIS 2.18\apps\Python27\Lib
*** I use pycharm and my project interpreter is :
Python 2.7.5 (C:\Program Files\QGIS 2.18\bin\python.exe
now if I import qgis.core it will give
import error: no module named qgis.core
error in pycharm, but no errors in qgis python console!!!
What did I do wrong?