While trying to connect memcached using python I got following error:
ImportError: No module named memcache
Since I imported memcache & it’s not available in my server I got the error message saying that “No module named memcache”.
To resolve this issue we need to install python-memcache module.
Use following command to install python-memcache:
$ pip install python-memcache
If your OS is Ubuntu/Debian following command also works for you:
$ apt-get install python-memcache
After installing python-memcache we can seamlessly connect to memcached.