Jay
Jay

Reputation: 91

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

When i try to give a pip install on my requirements.txt file, it fails as mentioned below:

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/ .

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

pip install html5lib --upgrade

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

Can someone suggest me what can be done in this case?

Upvotes: 7

Views: 11459

Answers (2)

gonz
gonz

Reputation: 5276

It seems there's a bug in older html5lib versions that didn't support old setuptools versions, this is fixed in newer html5lib versions.

So you can require a newer version of html5lib or if you can't mess with your dependencies just upgrade your setuptools with:

pip install -U setuptools

Upvotes: 14

YFP
YFP

Reputation: 337

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

Upvotes: 0

Related Questions