"python setup.py egg_info" failed with error code 1 in /tmp/pip-build-wF_NKE/decorator/

I'm running python on vscode on Ubuntu and I'm trying to install some Python modules like skimage. However when I do

pip install skimages 

I just get this:

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-wF_NKE/decorator/

How can I work around this?

Upvotes: 0

Views: 5424

Answers (2)

safk
safk

Reputation: 23

I was getting the same error. I got around it by installing an older version decorator first.

pip install decorator==4.4.2

Upvotes: 1

web-sudo
web-sudo

Reputation: 686

This means that your setuptools are out of date.

You can fix this by doing:

pip install --upgrade setuptools

Upvotes: 1

Related Questions