title: How to install Python docx module on mac osx
body: <p>I'm trying to generate <code>.docx</code> files using Python. I searched the web and posts here and found a module:</p>
  
  <p><a href="https://github.com/mikemaccana/python-docx/blob/master/README.markdown" rel="nofollow">https://github.com/mikemaccana/python-docx/blob/master/README.markdown</a></p>
  
  <p>It says to install using <code>easy_install</code> or <code>pip</code>, which I have no idea how to do. I went to python website to install pip from the instructions given on python documentation:</p>
  
  <p><a href="http://guide.python-distribute.org/installation.html" rel="nofollow">http://guide.python-distribute.org/installation.html</a></p>
  
  <p>So I downloaded and followed directions:</p>
  
  <pre><code>$ tar xzf pip-0.7.2.tar.gz
  $ cd pip-0.7.2
  $ python setup.py install
  </code></pre>
  
  <p>But when I do python setup.py install, I get error message:</p>
  
  <pre><code>Johns-MacBook-Pro:pip-0.7.2 John$ python setup.py install
  Traceback (most recent call last):
  File "setup.py", line 2, in &lt;module&gt;
  from setuptools import setup
  
  ImportError: No module named setuptools
  </code></pre>
  
  <p>Can someone please help me install step by step for a newb? Thanks in advance for all of your help!</p>