python3安装xadmin出现 UnicodeDecodeError: 'gbk' codec can't decode byte 0xa4 in position 3444

来源:互联网 发布:selenium java 多线程 编辑:程序博客网 时间:2024/06/07 01:31

原文链接

python3的环境安装xadmin时,直接pip install xadmin出现

Downloading xadmin-0.6.1.tar.gz (1.0MB)    100% |████████████████████████████████| 1.0MB 547kB/s    Complete output from command python setup.py egg_info:    Traceback (most recent call last):      File "<string>", line 1, in <module>      File "C:\Users\leo\AppData\Local\Temp\pip-build-thid_cll\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\leo\AppData\Local\Temp\pip-build-thid_cll\xadmin\
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

README.rst这个文件的编码有问题,可以内容没什么重要的,可以直接到github上下载安装包,然后新建一个txt空文件,把文件名改成README.rst,替换原来的文件 
下载安装包,下载zip压缩文件,下载地址:

https://github.com/sshwsfc/xadmin
  • 1
  • 1

这里写图片描述 
这里写图片描述 
替换成功后,把压缩包放到一个文件夹中,在命令窗口中进入存放压缩包的文件下,执行pip命令 
这里写图片描述



阅读全文
0 0