I'm new to Python and have been trying to install some packages with pip
.
But pip install unroll
gives me
Command "python setup.py egg_info" failed with error code 1 in C:\Users\MARKAN~1\AppData\Local\Temp\pip-build-wa7uco0k\unroll\
How can I solve this?
I got stuck exactly with the same error with
psycopg2
. It looks like I skipped a few steps while installing Python and related packages.sudo apt-get install python-dev libpq-dev
pip install psycopg2
(In your case you need to replace
psycopg2
with the package you have an issue with.)It worked seamlessly.
Microsoft Visual C++ Compiler for Python 2.7
from https://www.microsoft.com/en-in/download/details.aspx?id=44266 - this package contains the compiler and set of system headers necessary for producing binary wheels for Python 2.7 packages.pip install ez_setup
pip install unroll
(It will start installingnumpy, music21, decorator, imageio, tqdm, moviepy, unroll
) # Please be patient formusic21
installationPython 2.7.11 64 bit used
I had the same problem.
The problem was:
pyparsing 2.2
was already installed and myrequirements.txt
was trying to installpyparsing 2.0.1
which throw this errorContext: I was using virtualenv, and it seems the 2.2 came from my global OS Python
site-packages
, but even with--no-site-packages
flag (now by default in last virtualenv) the 2.2 was still present. Surely because I installed Python from their website and it added Python libraries to my$PATH
.Maybe a
pip install --ignore-installed
would have worked.Solution: as I needed to move forwards, I just removed the
pyparsing==2.0.1
from myrequirements.txt
.Upgrading Python to version 3 fixed my problem. Nothing else did.
About the error code
According to the Python documentation:
Error code 1 is defined in
errno.h
and meansOperation not permitted
.About your error
Your setuptools do not appear to be installed. Just follow the
Installation Instructions
from the PyPI website.If it's already installed, try
If it's already up to date, check that the module ez_setup is not missing. If it is, then
Then try again
If it's still not working, maybe pip didn't install/upgrade setup_tools properly so you might want to try
And again
This was the easier way for me:
So if you was using pip, try to use pip3 or pip2
It should solve the problem.