Shinomoto Asakura
Shinomoto Asakura

Reputation: 1542

Python: setup.py egg_info failed with error code 1

I already updated my Python 2.7.x to 3.6 and still getting this message when I try to install any package. Examples: Flask, Kivy..

Command "python setup.py egg_info" failed with error code 1 in C:\Users\Dev\AppData\Local\Temp\pip-install-1_cikdf6\itsdangerous\

System Information:

Windows 10
Python 3.6.5
pip        10.0.1
setuptools 39.0.1
wheel      0.31.0

Command to install: python -m pip install 'package-name' running in Administrator privilege

UPDATE

After running pip install ez_setup I waited for more than 30 min and it gets blinking a white space, like it's waiting finish something.

enter image description here

Upvotes: 5

Views: 62820

Answers (4)

favorhau
favorhau

Reputation: 31

I was confused by this problem for many times.But I found it work recently when I see the pyinstaller releases for https://github.com/pyinstaller/pyinstaller/releases.

  1. First, You would install python 3.4.4 and set the environment venv
  2. Download the get-pip.py for python 3.4.4
curl https://bootstrap.pypa.io/pip/3.4/get-pip.py -O get-pip.py

after that you can

python get-pip.py
  1. Installer right version for pyinstaller in 32-bits system
pip install pyinstaller==3.0

and after that you would use

pyinstaller [args] <name>

to compile your python code in 32-bits system like Windows XP

Upvotes: 3

JenyaKh
JenyaKh

Reputation: 2498

For me, the problem was solved with updating the pip itself:

# X is the required Python number, e.g. 2 or 3 or 2.7 or 3.5 or 3.6, etc.
sudo pythonX -m pip install --upgrade pip  

Upvotes: 6

struggle6688
struggle6688

Reputation: 1

I encountered a similar problem when installing suds. I solved it by first executing 'pip install client'.

Upvotes: 0

user9686872
user9686872

Reputation:

make sure it's up to date

pip install --upgrade setuptools

make sure module ez_setup isn't missing

pip install ez_setup

then try this

pip install unroll 

if it's still not working try this

easy_install -U setuptools

and then

pip install unroll

Upvotes: 1

Related Questions