html5lib requires setuptools version 18.5 or above; please upgrade before installing (you have 0.6)
<p>When i try to give a pip install on my <code>requirements.txt</code> file, it fails as mentioned below: </p>

<pre><code>html5lib requires setuptools version 18.5 or above; please upgrade before installing (you have 0.6)

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-5xXCfM/html5lib/ .
</code></pre>

<p>I did go through some of the previous post on this where some user mentioned it got resolved by specifying :</p>

<pre><code>pip install html5lib --upgrade
</code></pre>

<p>But when i issue the above command it tells me to update the setup tools, and when I try to update or upgrade <code>setuptools</code> it says already up to date.</p>

<p>Can someone suggest me what can be done in this case?</p>

<p>Are you on a mac per chance? try adding the --user flag to your pip command</p>

python pip