title: ImportError: No module named lxml.html when creating scrapy project
body: <p>I'm on OS 10.9.5 and get the following error when I try to create a scrapy project:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/usr/local/bin/scrapy", line 7, in &lt;module&gt;
      from scrapy.cmdline import execute
    File "/Library/Python/2.7/site-packages/scrapy/__init__.py", line 56, in &lt;module&gt;
      from scrapy.spider import Spider
    File "/Library/Python/2.7/site-packages/scrapy/spider.py", line 7, in &lt;module&gt;
      from scrapy.http import Request
    File "/Library/Python/2.7/site-packages/scrapy/http/__init__.py", line 11, in &lt;module&gt;
      from scrapy.http.request.form import FormRequest
    File "/Library/Python/2.7/site-packages/scrapy/http/request/form.py", line 9, in &lt;module&gt;
      import lxml.html
  ImportError: No module named lxml.html
  </code></pre>
  
  <p>I first tried to uninstall and then reinstall scrapy using pip. I'm not sure whether the problem is actually that something went wrong during the installation of scrapy. I get the following output when installing scrapy:</p>
  
  <pre><code>Downloading/unpacking scrapy
    Downloading Scrapy-0.24.4-py2-none-any.whl (444kB): 444kB downloaded
  Requirement already satisfied (use --upgrade to upgrade): pyOpenSSL in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from scrapy)
  Requirement already satisfied (use --upgrade to upgrade): six&gt;=1.5.2 in /Library/Python/2.7/site-packages (from scrapy)
  Requirement already satisfied (use --upgrade to upgrade): queuelib in /Library/Python/2.7/site-packages (from scrapy)
  Downloading/unpacking lxml (from scrapy)
    Downloading lxml-3.4.0.tar.gz (3.5MB): 3.5MB downloaded
    Running setup.py (path:/private/tmp/pip_build_root/lxml/setup.py) egg_info for package lxml
      /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
        warnings.warn(msg)
      Building lxml version 3.4.0.
      Building without Cython.
      Using build configuration of libxslt 1.1.28
  
      warning: no previously-included files found matching '*.py'
  Requirement already satisfied (use --upgrade to upgrade): w3lib&gt;=1.8.0 in /Library/Python/2.7/site-packages (from scrapy)
  Downloading/unpacking cssselect&gt;=0.9 (from scrapy)
    Downloading cssselect-0.9.1.tar.gz
    Running setup.py (path:/private/tmp/pip_build_root/cssselect/setup.py) egg_info for package cssselect
  
      no previously-included directories found matching 'docs/_build'
  Requirement already satisfied (use --upgrade to upgrade): Twisted&gt;=10.0.0 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from scrapy)
  Requirement already satisfied (use --upgrade to upgrade): zope.interface in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from Twisted&gt;=10.0.0-&gt;scrapy)
  Requirement already satisfied (use --upgrade to upgrade): setuptools in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from zope.interface-&gt;Twisted&gt;=10.0.0-&gt;scrapy)
  Installing collected packages: scrapy, lxml, cssselect
    Running setup.py install for lxml
      /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
        warnings.warn(msg)
      Building lxml version 3.4.0.
      Building without Cython.
      Using build configuration of libxslt 1.1.28
      building 'lxml.etree' extension
      cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/usr/include/libxml2 -I/private/tmp/pip_build_root/lxml/src/lxml/includes -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.9-intel-2.7/src/lxml/lxml.etree.o -w -flat_namespace
  
      You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.
      error: command 'cc' failed with exit status 69
      Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-3TNhV_-record/install-record.txt --single-version-externally-managed --compile:
      /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
  
    warnings.warn(msg)
  
  Building lxml version 3.4.0.
  
  Building without Cython.
  
  Using build configuration of libxslt 1.1.28
  
  running install
  
  running build
  
  running build_py
  
  creating build
  
  creating build/lib.macosx-10.9-intel-2.7
  
  creating build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/__init__.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/_elementpath.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/builder.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/cssselect.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/doctestcompare.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/ElementInclude.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/pyclasslookup.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/sax.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/usedoctest.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  creating build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/__init__.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  creating build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/__init__.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/_diffcommand.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/_html5builder.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/_setmixin.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/builder.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/clean.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/defs.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/diff.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/ElementSoup.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/formfill.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/html5parser.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/soupparser.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/usedoctest.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron
  
  copying src/lxml/isoschematron/__init__.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron
  
  copying src/lxml/lxml.etree.h -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/lxml.etree_api.h -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/includes/c14n.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/config.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/dtdvalid.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/etreepublic.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/htmlparser.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/relaxng.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/schematron.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/tree.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/uri.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/xinclude.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/xmlerror.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/xmlparser.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/xmlschema.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/xpath.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/xslt.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/etree_defs.h -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/lxml-version.h -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources
  
  creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/rng
  
  copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/rng
  
  creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl
  
  copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl
  
  copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl
  
  creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  
  running build_ext
  
  building 'lxml.etree' extension
  
  creating build/temp.macosx-10.9-intel-2.7
  
  creating build/temp.macosx-10.9-intel-2.7/src
  
  creating build/temp.macosx-10.9-intel-2.7/src/lxml
  
  cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/usr/include/libxml2 -I/private/tmp/pip_build_root/lxml/src/lxml/includes -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.9-intel-2.7/src/lxml/lxml.etree.o -w -flat_namespace
  
  
  
  You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.
  
  error: command 'cc' failed with exit status 69
  
  ----------------------------------------
  Cleaning up...
  Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-3TNhV_-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/lxml
  </code></pre>
  
  <p>I also tried to install lxml seperately and get the following output:</p>
  
  <pre><code>Downloading/unpacking lxml
    Downloading lxml-3.4.0.tar.gz (3.5MB): 3.5MB downloaded
    Running setup.py (path:/private/tmp/pip_build_root/lxml/setup.py) egg_info for package lxml
      /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
        warnings.warn(msg)
      Building lxml version 3.4.0.
      Building without Cython.
      Using build configuration of libxslt 1.1.28
  
      warning: no previously-included files found matching '*.py'
  Installing collected packages: lxml
    Running setup.py install for lxml
      /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
        warnings.warn(msg)
      Building lxml version 3.4.0.
      Building without Cython.
      Using build configuration of libxslt 1.1.28
      building 'lxml.etree' extension
      cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/usr/include/libxml2 -I/private/tmp/pip_build_root/lxml/src/lxml/includes -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.9-intel-2.7/src/lxml/lxml.etree.o -w -flat_namespace
  
      You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.
      error: command 'cc' failed with exit status 69
      Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-l6wwGK-record/install-record.txt --single-version-externally-managed --compile:
      /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
  
    warnings.warn(msg)
  
  Building lxml version 3.4.0.
  
  Building without Cython.
  
  Using build configuration of libxslt 1.1.28
  
  running install
  
  running build
  
  running build_py
  
  creating build
  
  creating build/lib.macosx-10.9-intel-2.7
  
  creating build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/__init__.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/_elementpath.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/builder.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/cssselect.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/doctestcompare.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/ElementInclude.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/pyclasslookup.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/sax.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/usedoctest.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  creating build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/__init__.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  creating build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/__init__.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/_diffcommand.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/_html5builder.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/_setmixin.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/builder.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/clean.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/defs.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/diff.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/ElementSoup.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/formfill.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/html5parser.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/soupparser.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  copying src/lxml/html/usedoctest.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/html
  
  creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron
  
  copying src/lxml/isoschematron/__init__.py -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron
  
  copying src/lxml/lxml.etree.h -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/lxml.etree_api.h -&gt; build/lib.macosx-10.9-intel-2.7/lxml
  
  copying src/lxml/includes/c14n.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/config.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/dtdvalid.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/etreepublic.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/htmlparser.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/relaxng.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/schematron.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/tree.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/uri.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/xinclude.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/xmlerror.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/xmlparser.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/xmlschema.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/xpath.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/xslt.pxd -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/etree_defs.h -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  copying src/lxml/includes/lxml-version.h -&gt; build/lib.macosx-10.9-intel-2.7/lxml/includes
  
  creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources
  
  creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/rng
  
  copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/rng
  
  creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl
  
  copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl
  
  copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl
  
  creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -&gt; build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  
  running build_ext
  
  building 'lxml.etree' extension
  
  creating build/temp.macosx-10.9-intel-2.7
  
  creating build/temp.macosx-10.9-intel-2.7/src
  
  creating build/temp.macosx-10.9-intel-2.7/src/lxml
  
  cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/usr/include/libxml2 -I/private/tmp/pip_build_root/lxml/src/lxml/includes -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.9-intel-2.7/src/lxml/lxml.etree.o -w -flat_namespace
  
  
  
  You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.
  
  error: command 'cc' failed with exit status 69
  
  ----------------------------------------
  Cleaning up...
  Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-l6wwGK-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/lxml
  </code></pre>
  
  <p>Can anybody please help?</p>