简体   繁体   中英

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.

在此处输入图片说明

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

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  

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM