Command "python setup.py egg_info" failed with error code 1 in C:\Users\w5659\AppData\Local\Temp\pip-install-t7uomu4r\xa dmin\

时间:2022-11-16 13:59:36

Error msg:

C:\Users\w5659>pip install xadmin
Collecting xadmin
  Using cached https://files.pythonhosted.org/packages/1d/e9/2ac160c532d0d462142fa90aa86a0e317295e8d86fa4caf84d04f6e24c4
9/xadmin-0.6.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\w5659\AppData\Local\Temp\pip-install-t7uomu4r\xadmin\setup.py", line 11, in <module>
        long_description=open('README.rst').read(),
    UnicodeDecodeError: 'gbk' codec can't decode byte 0xa4 in position 3444: illegal multibyte sequence

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\w5659\AppData\Local\Temp\pip-install-t7uomu4r\xa
dmin\

问题:

  pip install xadmin安装包中有中文出现, 编码错误, 导致安装中断

解决:

  使用github源码安装:

    pip install https://github.com/sshwsfc/xadmin/tarball/master