using "C:\Program Files\QGIS 2.18\bin\python.exe" for my project interpreter in pycharm and, path variables as : PYTHONHOME = "C:\Program Files\QGIS 2.18\bin" PYTHONPATH = "C:\Program Files\QGIS 2.18\apps\Python27\Lib" when I execute code in pycharm containing PyQt4, it will give me an error (no module named PyQt4) and when i try to install packaging tools via pycharm settings, it will give me another error called"no module named socket"... exact code is written below->
Traceback (most recent call last):
File "c:\users\ash\appdata\local\temp\tmpodyeojpycharm-management\setuptools-28.8.0\setup.py", line 11, in <module>
import setuptools
File "c:\users\ash\appdata\local\temp\tmpodyeojpycharm-management\setuptools-28.8.0\setuptools\__init__.py", line 10, in <module>
from setuptools.extern.six.moves import filter, filterfalse, map
File "c:\users\ash\appdata\local\temp\tmpodyeojpycharm-management\setuptools-28.8.0\setuptools\extern\__init__.py", line 1, in <module>
from pkg_resources.extern import VendorImporter
File "c:\users\ash\appdata\local\temp\tmpodyeojpycharm-management\setuptools-28.8.0\pkg_resources\__init__.py", line 36, in <module>
import email.parser
File "C:\Program Files\QGIS 2.18\apps\Python27\Lib\email\parser.py", line 12, in <module>
from email.feedparser import FeedParser
File "C:\Program Files\QGIS 2.18\apps\Python27\Lib\email\feedparser.py", line 27, in <module>
from email import message
File "C:\Program Files\QGIS 2.18\apps\Python27\Lib\email\message.py", line 16, in <module>
import email.charset
File "C:\Program Files\QGIS 2.18\apps\Python27\Lib\email\charset.py", line 13, in <module>
import email.base64mime
File "C:\Program Files\QGIS 2.18\apps\Python27\Lib\email\base64mime.py", line 40, in <module>
from email.utils import fix_eols
File "C:\Program Files\QGIS 2.18\apps\Python27\Lib\email\utils.py", line 28, in <module>
import socket
File "C:\Program Files\QGIS 2.18\apps\Python27\Lib\socket.py", line 47, in <module>
import _socket
ImportError: No module named _socket
how can I solve that?