title: How to install a specific version of a package with pip
body: <p>I want to install <a href="https://pypi.python.org/pypi/pyquery/1.2.4" rel="nofollow">Pyquery 1.2.4</a> version, but when I try </p>
  
  <pre><code> pip install pyquery==1.2.4
  </code></pre>
  
  <p>I face with </p>
  
  <pre><code>  Compile failed: command 'gcc' failed with exit status 1
      creating tmp
      cc -I/usr/include/libxml2 -c /tmp/xmlXPathInitXZJM6c.c -o tmp/xmlXPathInitXZJM6c.o
      /tmp/xmlXPathInitXZJM6c.c:1:26: error: libxml/xpath.h: No such file or directory
      *********************************************************************************
      Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
      *********************************************************************************
      error: command 'gcc' failed with exit status 1
  
      ----------------------------------------
  Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-cmQUrb/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-YFpKDF-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-cmQUrb/lxml
  
      No matching distribution found for python-pyquery
  </code></pre>
  
  <p>I know it because my Python version (2.6), and I can't update it to 2.7 because of  yum</p>
  
  <p>How can I resolve this problem?</p>