Django runserver UnicodeDecodeError

时间:2017-08-15 08:20:40

标签: python django

我正在尝试在Windows中使用创建Django Server 当键入命令" python manage.py runserver" 它会弹出这些错误消息

UnicodeDecodeError: 'utf8' codec can't decode byte 0xb6 in position 0: invalid start byte

我不知道发生了什么以及如何解决这个问题

这是我的pip冻结

appdirs==1.4.3
backports-abc==0.4
backports.ssl-match-hostname==3.5.0.1
beautifulsoup4==4.4.1
certifi==2015.11.20.1
cx-Freeze==5.0.1
cycler==0.10.0
decorator==4.0.6
Django==1.11.4
functools32==3.2.3.post2
future==0.16.0
ipykernel==4.2.2
ipython==4.0.3
ipython-genutils==0.1.0
Jinja2==2.8
jsonschema==2.5.1
jupyter-client==4.1.1
jupyter-core==4.0.6
lxml==3.7.3
MarkupSafe==0.23
matplotlib==2.0.2
mistune==0.7.1
MySQL-python==1.2.4b4
nbconvert==4.1.0
nbformat==4.0.1
notebook==4.1.0
numpy==1.12.1
packaging==16.8
path.py==8.1.2
pickleshare==0.6
py2exe==0.6.9
py2exe-py2==0.6.9
Pygments==2.1
PyInstaller==3.2.1
pyparsing==2.2.0
pypiwin32==219
python-dateutil==2.6.0
pytz==2017.2
pyzmq==15.2.0
requests==2.9.1
simplegeneric==0.8.1
singledispatch==3.4.0.3
six==1.10.0
tornado==4.3
traitlets==4.1.0
virtualenv==15.1.0
xmltodict==0.10.2

也许我有一些经文问题?

1 个答案:

答案 0 :(得分:1)

最可能的是你的用户名中有一个不是ascii的字符。 这是一个众所周知的问题:https://bugs.python.org/issue9377 不知道为什么需要这么长时间来修复:D

相关问题