title: How to install python-pptx?
body: <p>Following instructions from <a href="https://python-pptx.readthedocs.org/en/latest/user/install.html" rel="nofollow noreferrer">here</a> I execute (I added sudo because otherwise it does not work):</p>
  
  <pre><code>sudo pip install python-pptx
  </code></pre>
  
  <p>As a result I get:</p>
  
  <pre><code>/home/my_name/present/build/lxml/src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: No such file or directory
  
  compilation terminated.
  
  error: command 'gcc' failed with exit status 1
  </code></pre>
  
  <p>By searching in Internet for <code>fatal error: libxml/xmlversion.h: No such file or directory</code> I find <a href="https://stackoverflow.com/questions/15759150/src-lxml-etree-defs-h931-fatal-error-libxml-xmlversion-h-no-such-file-or-di">these</a> recommendations. It is said there that I need to execute:</p>
  
  <pre><code>sudo apt-get install libxml2-dev libxslt1-dev
  </code></pre>
  
  <p>If I execute this I get:</p>
  
  <pre><code>Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libxml2/libxml2_2.8.0+dfsg1-5ubuntu2.5_i386.deb  404  Not Found [IP: 2001:67c:1360:8c01::18 80]
  Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libxslt/libxslt1.1_1.1.26-14ubuntu0.1_i386.deb  404  Not Found [IP: 2001:67c:1360:8c01::18 80]
  Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libxml2/libxml2-dev_2.8.0+dfsg1-5ubuntu2.5_i386.deb  404  Not Found [IP: 2001:67c:1360:8c01::18 80]
  Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libxslt/libxslt1-dev_1.1.26-14ubuntu0.1_i386.deb  404  Not Found [IP: 2001:67c:1360:8c01::18 80]
  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
  </code></pre>
  
  <p>In the end of the above error message I have a recommendation (try with --fix-missing). OK, I try it with this option:</p>
  
  <pre><code>sudo apt-get install libxml2-dev libxslt1-dev --fix-missing
  </code></pre>
  
  <p>As a result I get:</p>
  
  <pre><code>Unable to correct missing packages.
  E: Aborting install.
  </code></pre>
  
  <p>I gave up this way and tried <code>easy_install</code>:</p>
  
  <pre><code>sudo easy_install python-pptx
  </code></pre>
  
  <p>As a result I get:</p>
  
  <pre><code>** make sure the development packages of libxml2 and libxslt are installed **
  
  Using build configuration of libxslt 
  /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
    warnings.warn(msg)
  In file included from src/lxml/lxml.etree.c:239:0:
  /tmp/easy_install-XE7O55/lxml-3.4.2/src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: No such file or directory
  compilation terminated.
  error: Setup script exited with error: command 'gcc' failed with exit status 1
  </code></pre>
  
  <p>OK, since it is recommended to install <code>libxml2</code> and <code>libxslt</code>, I try:</p>
  
  <pre><code>sudo easy_install libxml2
  </code></pre>
  
  <p>As a result I get:</p>
  
  <pre><code>Searching for libxml2
  Reading http://pypi.python.org/simple/libxml2/
  Couldn't find index page for 'libxml2' (maybe misspelled?)
  Scanning index of all packages (this may take a while)
  Reading http://pypi.python.org/simple/
  No local packages or download links found for libxml2
  error: Could not find suitable distribution for          Requirement.parse('libxml2')
  </code></pre>