Register Login

'pip install unroll': 'python setup.py egg_info' failed with error code 1

Updated Apr 03, 2020

What do you mean by “pip install unroll”: “python setup.py egg_info” failed with error code 1?

When you are trying to install packages from pip, Python’s standard package management system, you might encounter an error called pip install unroll”: “python setup.py egg_info” failed with error code 1This can happen when the setuptools is not properly installed - that helps you to easily download, install and upgrade Python packages.

In this article, we will look at the details of this error and the ways to solve it.    

What do you mean by the “pip install unroll”: “python setup.py egg_info” failed with error code 1?

To understand this error, let us first understand the error code 1.  

Error code 1 is defined in errno.h and means Operation not permitted. According to the Python documentation, the errorno module makes standard errno system symbols available for use. Each symbol here has a specific integer value. All the names and descriptions of these symbols are borrowed from linux/include/errno.h.

The error code 1 is defined in the errno.h library specifies that the Operation not permitted.

Now getting back to the error. The pip install unroll error is raised possibly as your setuptools are not installed. For proper installation, you can follow the installation instructions from the PyPI website. But first, check out the version of Python which you are running. This is because it may happen that you are trying to work with a package that is incompatible with an older Python version.

To check Python version, type in the following code in the Python console:

python –version

Also, ensure that you have installed pip properly. For this, type in the following code in the Python console:

pip –version

You also have to ensure that pip, setuptools, and wheel are all up to date. To do so, type in the following code:

python -m pip install --upgrade pip setuptools wheel

If you see that everything is properly installed already, take the following steps:

  • Type the following code to upgrade setuptools - pip install --upgrade setuptools
  • If setuptools is up to date, check whether module ez_setup is missing. If it is missing, then use the following code to install it pip install ez_setup
  • Then type in this codepip install unroll
  • If all this does not work, then maybe pip did not install or upgrade setup_tools properly. In  that case, you can try this code: easy_install -U setuptools

Here are some ways to upgrade setuptools using pip:

  • sudo pip install --upgrade setuptools
  • sudo apt-get install python-setuptools
  • sudo apt-get install python-dev
  • sudo apt install python-pip

And then, type this

  • pip install unroll


×