Command “python setup.py egg_info” failed with err

2019-06-10 12:49发布

问题:

Extracting in C:\Users\hkpra\AppData\Local\Temp\tmp3esvodcb
Traceback (most recent call last):
  File "c:\program files\python35\lib\site-packages\ez_setup.py", line 143, in use_setuptools
    raise ImportError
ImportError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\hkpra\AppData\Local\Temp\pip-build-imphcwak\unroll\setup.py", line 2, in <module>
    ez_setup.use_setuptools()
  File "c:\program files\python35\lib\site-packages\ez_setup.py", line 145, in use_setuptools
    return _do_download(version, download_base, to_dir, download_delay)
  File "c:\program files\python35\lib\site-packages\ez_setup.py", line 125, in _do_download
    _build_egg(egg, tarball, to_dir)
  File "c:\program files\python35\lib\site-packages\ez_setup.py", line 99, in _build_egg
    _extractall(tar)
  File "c:\program files\python35\lib\site-packages\ez_setup.py", line 467, in _extractall
    self.chown(tarinfo, dirpath)
TypeError: chown() missing 1 required positional argument: 'numeric_owner'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in C:\Users\hkpra\AppData\Local\Temp\pip-build-imphcwak\unroll\

回答1:

install python again, then successed

I also install by pip,lick

pip install locustio

or

sudo pip install locustio

but error occur

Collecting locustio

Using cached locustio-0.7.5.tar.gz

Complete output from command python setup.py egg_info:

running egg_info

error: Invalid distribution name or version syntax: locustio-0.7.5


Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/yw/15gswkd13v37xjqjy66rc8xc0000gn/T/pip-build-hFFjxs/locustio/

I try pip, pip3, and so on. Finally, I install python again and then it is ok.

for python2.7 sudo pip install python

for python3 sudo pip install python3



标签: python egg