• Register
0 votes
193 views

I am new in python programming. I am tryin gto iinstall some packages with pip commands. I tried to install a package called unroll by using the command:

pip[ install unroll

but it gives me some error like :

"python setup.py egg_info" failed with error code 1

How can I solve this problem?

How can I check my pip version?

How can I upgrade my pip version?

10 7 2
6,060 points

3 Answers

1 vote

You can follow the official documentaion of python from: 

https://docs.python.org/2/library/errno.html

The error code 1 is defined in error.h and it says that ‘Operation is not permited’

If you don’t have a setuptools get it from:

https://packaging.python.org/tutorials/installing-packages/

 If your setuptools is already installed try:

pip install --upgrade setuptools

If it is already upgraded check that the module name ‘ez_setup’ is not missing.

If it is missing then try:

pip install ez_setup

then again you may try :

pip install unroll

To check your pip version use the command:

pip --version

To upgrade your pip version use the command:
 

python -m pip install –upgrade pip

 

11 6 4
34,950 points
1 vote

According to python documentation, this module makes available standard error number system. The value of each symbol represents the corresponding integer values. The name and descriptions are borrowed from directory linux/include/errno.h. The error code 1 is defined in errno.h and elaborate that “operations are not permitted”.

Solution:

Your setups tools are not installed. You can install setup tools by using the following instructions from the PyPI website.

If the setuptools are already installed then try the following command;

pip install –upgrade setuptools

If setuptools are already up to date, then check whether you have missed module ez_setup or not. For this purpose use the command;

pip install ez_setup

After that try again by using the command;

pip install unroll

If you are still unable to solve the error then, maybe pip did not install or upgrade setup_tools properly. So it is suggested to try;

easy_install –U setuptools

And try again

pip install unroll

I hope this will solve your problem!

Note:

The fastest way to install id by using;

Git clone https//github.com/Zulko/unroll
cd unroll && python setup.py bdist_wheel

Then copy a generated file from the created dist folder into your virtual environment by using the command;

pip install unroll-0.1.0-p2-none-any.whl.

This will help to install your package without any problem.

11 5 1
3,890 points
1 vote

According to python documentation this module makes available standard error number systems. The value of each symbol represents the corresponding integer values. The name and descriptions are borrowed from directory Linux/include/errno.h. The error code 1 is defined in errno.h and elaborate that “operations are not permitted”.

According to your code.

Your setups tools are not installed. You can install setup tools by using the following instructions from the PyPI website.

If the setuptools are already installed then try the following command;

pip install –upgrade setuptools

If setuptools are already up to date, then check whether you have missed module ez_setup or not. For this purpose use the command;

pip install ez_setup

After that try again by using the command;

pip install unroll

If you are still unable to solve the error then, maybe pip did not install or upgrade setup_tools properly. So it is suggested to try;

easy_install –U setuptools

And try again

pip install unroll

I hope this will solve your problem!

Note:

The fastest way to install id by using;

git clone https//github.com/Zulko/unroll

cd unroll && python setup.py bdist_wheel

Then copy a generated file from the created dist folder into your virtual environment by using the command;

pip install unroll-0.1.0-p2-none-any.whl.

This will help to install your package without any problem.

11 5 1
3,890 points

Related questions

0 votes
1 answer 339 views
339 views
Problem : When I executed: pip install xgboost I got this: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/w4/w49s3mn91plbhyjwf8qjkpxc0000gn/T/pip-build-61dms1/xgboost/
asked Oct 21, 2019 peterlaw 6.9k points
2 votes
1 answer 25 views
25 views
Problem: I am new in programming language. I was trying to setup and then upgrade gcloud using python. I used the command: pip install --upgrade gcloud After that it shows: Collecting gcloud Downloading gcloud-0.18.3.tar.gz (454kB) 100% | ... code 1 in C:\Users\bid\AppData\Local\Temp\pip-build-ppc44asr\googleapis-common-protos\ Whats is happening here can anyone help?
asked Mar 24 LizzyM 6.1k points
2 votes
1 answer 1.5K views
1.5K views
Problem: When I try to run the below command on my command prompt: python get-pip.py It shows the following message: C:\Users\ASUS>python get-pip.py python: can't open file 'get-pip.py': [Errno 2] No such file or directory How can I have pip installed in my system. Then why am I getting this error message and why I can not open this file. Thanks in advance.
asked May 6 samhaz 5k points
1 vote
1 answer 39 views
39 views
Problem: I tried to install mysql in my system by running the command: pip install mysql-python But it shows: C:\Users\ASUS>pip install mysql-python Collecting mysql-python Downloading https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL ... --user --prefix= Check the logs for full command output. What should I do now to fix this problem.
asked May 12 samhaz 5k points
0 votes
1 answer 1.1K views
1.1K views
I am trying to create a rating data frame for some football teams. To rate the teams I am using elo rating system : https://en.wikipedia.org/wiki/Elo_rating_system My data frame consists of pre-match ratings of home and away teams and it gets updated after every match. My data ... of size 1 to a python scalar Can any one help me to find what the problem really is and help me to solve the problem.
asked Mar 10 LizzyM 6.1k points