• Register
0 votes
228 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

Please log in or register to answer this question.

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 2
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 2
3,890 points

Related questions

0 votes
1 answer 35 views
35 views
Problem: I am trying to install python package rpy2 with pip install on Ubuntu 16.04: pip install rpy2==2.2.7 but get error message (see full output below): Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-EuOI6K/unroll/
asked Jan 10 Mashhoodch 5.7k points
0 votes
1 answer 408 views
408 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 32 views
32 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, 2020 LizzyM 6.1k points
2 votes
1 answer 2.5K views
2.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, 2020 samhaz 5k points
0 votes
1 answer 24 views
24 views
Problem: I am trying to install virtualenv on Ubuntu. First it said command 'pip' not found, so I typed sudo apt install python-pip then it said E: Unable to locate package python-pip I tried to reset WSL, download using cmd but it doesn't work with Ubuntu. I don' ... though I have downloaded python3, virtualenv, and pip using cmd. It doesn't work with Ubuntu 18.04. It also fails on Ubuntu 14.04.
asked Jan 8 Mashhoodch 5.7k points
1 vote
1 answer 89 views
89 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, 2020 samhaz 5k points
0 votes
1 answer 2 views
2 views
Problem: A numpy matrix can be reshaped into a vector using reshape function with parameter -1. But I don't know what -1 means here. For example: a = numpy.matrix([[1, 2, 3, 4], [5, 6, 7, 8]]) b = numpy.reshape(a, -1) The result of b is: matrix ... anyone know what -1 means here? And it seems python assign -1 several meanings, such as: array[-1] means the last element. Can you give an explanation?
asked Jan 7 Mashhoodch 5.7k points
0 votes
1 answer 1.7K views
1.7K 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, 2020 LizzyM 6.1k points
0 votes
1 answer 4.6K views
4.6K views
Problem : I was installing pyswip and needed to run a setup.py file.Using the command "python setup.py", I'm getting the following message: "python: can't open file 'setup.py': [Errno 2] No such file or directory." Trying to run other .py files from the terminal gives me the same results.
asked Oct 21, 2019 peterlaw 6.9k points