title: pylibmc installation error using pip in python
body: <p>I am trying to install pylibmc using pip inside my virtual env and getting the below error</p>
  
  <pre><code>pip install pylibmc
  Downloading/unpacking pylibmc
    Downloading pylibmc-1.3.0.tar.gz (49kB): 49kB downloaded
    Running setup.py egg_info for package pylibmc
  
      warning: no files found matching 'LICENSE'
      warning: no files found matching 'runtests.py'
      warning: no files found matching '*.py' under directory 'pylibmc'
  Installing collected packages: pylibmc
    Running setup.py install for pylibmc
      building '_pylibmc' extension
      x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE_ZLIB -I/usr/include/python2.7 -c src/_pylibmcmodule.c -o build/temp.linux-x86_64-2.7/src/_pylibmcmodule.o -fno-strict-aliasing
      In file included from src/_pylibmcmodule.c:34:0:
      src/_pylibmcmodule.h:42:36: fatal error: libmemcached/memcached.h: No such file or directory
       #include &lt;libmemcached/memcached.h&gt;
                                          ^
      compilation terminated.
      error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
      Complete output from command /home/satyag/.virtualenvs/inwell/bin/python -c "import setuptools;__file__='/home/satyag/.virtualenvs/inwell/build/pylibmc/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-j2sj7j-record/install-record.txt --single-version-externally-managed --install-headers /home/satyag/.virtualenvs/inwell/include/site/python2.7:
      running install
  
  running build
  
  running build_py
  
  creating build
  
  creating build/lib.linux-x86_64-2.7
  
  creating build/lib.linux-x86_64-2.7/pylibmc
  
  copying src/pylibmc/__main__.py -&gt; build/lib.linux-x86_64-2.7/pylibmc
  
  copying src/pylibmc/test.py -&gt; build/lib.linux-x86_64-2.7/pylibmc
  
  copying src/pylibmc/__init__.py -&gt; build/lib.linux-x86_64-2.7/pylibmc
  
  copying src/pylibmc/client.py -&gt; build/lib.linux-x86_64-2.7/pylibmc
  
  copying src/pylibmc/pools.py -&gt; build/lib.linux-x86_64-2.7/pylibmc
  
  copying src/pylibmc/consts.py -&gt; build/lib.linux-x86_64-2.7/pylibmc
  
  running build_ext
  
  building '_pylibmc' extension
  
  creating build/temp.linux-x86_64-2.7
  
  creating build/temp.linux-x86_64-2.7/src
  
  x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE_ZLIB -I/usr/include/python2.7 -c src/_pylibmcmodule.c -o build/temp.linux-x86_64-2.7/src/_pylibmcmodule.o -fno-strict-aliasing
  
  In file included from src/_pylibmcmodule.c:34:0:
  
  src/_pylibmcmodule.h:42:36: fatal error: libmemcached/memcached.h: No such file or directory
  
   #include &lt;libmemcached/memcached.h&gt;
  
                                      ^
  
  compilation terminated.
  
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  
  ----------------------------------------
  Cleaning up...
  Command /home/user/.virtualenvs/proj/bin/python -c "import setuptools;__file__='/home/user/.virtualenvs/proj/build/pylibmc/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-j2sj7j-record/install-record.txt --single-version-externally-managed --install-headers /home/user/.virtualenvs/proj/include/site/python2.7 failed with error code 1 in /home/user/.virtualenvs/proj/build/pylibmc
  Storing complete log in /home/user/.pip/pip.log
  </code></pre>
  
  <p>So why it is showing me error ? and how to avoid this error.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Also i tried in this way,</p>
  
  <p>Downloaded the zip file manually at here <strong><a href="https://pypi.python.org/pypi/pylibmc" rel="noreferrer">https://pypi.python.org/pypi/pylibmc</a></strong> and runt the command <code>python setup.py install</code> and i got the below error</p>
  
  <pre><code>running install
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/pylibmc
  copying src/pylibmc/__main__.py -&gt; build/lib.linux-x86_64-2.7/pylibmc
  copying src/pylibmc/test.py -&gt; build/lib.linux-x86_64-2.7/pylibmc
  copying src/pylibmc/__init__.py -&gt; build/lib.linux-x86_64-2.7/pylibmc
  copying src/pylibmc/client.py -&gt; build/lib.linux-x86_64-2.7/pylibmc
  copying src/pylibmc/pools.py -&gt; build/lib.linux-x86_64-2.7/pylibmc
  copying src/pylibmc/consts.py -&gt; build/lib.linux-x86_64-2.7/pylibmc
  running build_ext
  building '_pylibmc' extension
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/src
  x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE_ZLIB -I/usr/include/python2.7 -c src/_pylibmcmodule.c -o build/temp.linux-x86_64-2.7/src/_pylibmcmodule.o -fno-strict-aliasing
  In file included from src/_pylibmcmodule.c:34:0:
  src/_pylibmcmodule.h:42:36: fatal error: libmemcached/memcached.h: No such file or directory
   #include &lt;libmemcached/memcached.h&gt;
                                      ^
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  </code></pre>