环境:Python 3.8 Django 2.26
https://github.com/sshwsfc/xadmin/tree/django2
要使用xadmin应该用上面这个。pip install https://codeload.github.com/sshwsfc/xadmin/zip/django2
以下为历史笔记
ERROR: Command errored out with exit status 1:
command: 'd:\devkits\pyenv\pyshop\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\xxx\AppData\Local\Temp\pip-in
stall-wjgmf7z6\xadmin\setup.py'"'"'; file='"'"'C:\Users\xxx\AppData\Local\Temp\pip-install-wjgmf7z6\xadmin\setup.py'"'"';f=getattr(tokenize, '"'"'
open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Us
ers\xxx\AppData\Local\Temp\pip-install-wjgmf7z6\xadmin\pip-egg-info'
cwd: C:\Users\xxx\AppData\Local\Temp\pip-install-wjgmf7z6\xadmin
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\xxxx\AppData\Local\Temp\pip-install-wjgmf7z6\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
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
解决方法
1、后缀改成txt2、打开根目录下的setup.py文件,将README.rst改成README.txt
安装文件
1、原文件可以从github搜索xadmin进入下载
2、以下是修改了README.rst以后的文件包
链接: https://pan.baidu.com/s/1-fjxBx3KfajzYbbmvMaguw 提取码: 6yw9 复制这段内容后打开百度网盘手机App,操作更方便哦
还可能遇到的问题
1、https://blog.csdn.net/hocker_white/article/details/80699688