问题
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Anani\AppData\Local\Temp\pip-install-lco9cj55\xadmin\setup
py", line 11, in <module>
long_description=open('README.rst').read(),
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa4 in position 3444: il
egal multibyte sequence
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Anani\A
pData\Local\Temp\pip-install-lco9cj55\xadmin\
解决
解决方案参考:https://zhuanlan.zhihu.com/p/32636282
github下载:https://github.com/sshwsfc/xadmin
官方文档: http://xadmin.readthedocs.io/en/docs-chinese/
推荐解决方案
不推荐修改readme.rsf方案,建议源码安装方案。
安装
- 下载xadmin-master
github下载:https://github.com/sshwsfc/xadmin - 解压
- 移动并标记文件夹为sourceroot
- 解决命令行无法运行项目
python manage.py runserver 0.0.0.0:8000 - 虚拟环境下 安装对应依赖包
使用
- 注册app
- url配置
- debug 加访问
-makemigrations migrate生成数据表