命令“python setup.py egg_info”失败,错误代码为1

时间:2016-08-11 16:57:33

标签: python egg

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'

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

命令“python setup.py egg_info”失败,错误代码1在C:\ Users \ hkpra \ AppData \ Local \ Temp \ pip-build-imphcwak \ unroll \

1 个答案:

答案 0 :(得分:0)

再次安装python,然后成功

我也是通过pip安装,舔

 var form = document.querySelector('#editRemovesubmedtypeForm');
 var formdata = $('#editRemovesubmedtypeForm').serialize();

pip install locustio

但发生错误

  

收集locustio

     

使用缓存的locustio-0.7.5.tar.gz

     

从命令python setup.py egg_info完成输出:

     

运行egg_info

     

错误:分发名称或版本语法无效:locustio-0.7.5

           

命令&#34; python setup.py egg_info&#34;在/ private / var / folders / yw / 15gswkd13v37xjqjy66rc8xc0000gn / T / pip-build-hFFjxs / locustio /

中出现错误代码1失败

我尝试pip,pip3等等。最后,我再次安装python,然后就可以了。

for python2.7  sudo pip install locustio

用于python3 sudo pip install python