Python3 Django创建管理员邮箱时,提示编码错误,怎么解决

2019-12-22 19:51栏目:龙竞技官网
TAG:

(guest)Freya-3:guestFreya$python3manage.pycreatesuperuserUsername(leaveblanktouse'freya'):adminEmailaddress:admin@mail.comTraceback(mostrecentcalllast):File"manage.py",line22,inmoduleexecute_from_command_line(sys.argv)File"/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/core/management/__init__.py",line364,inexecute_from_command_lineutility.execute()File"/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/core/management/__init__.py",line356,inexecuteself.fetch_command(subcommand).run_from_argv(self.argv)File"/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/core/management/base.py",line283,inrun_from_argvself.execute(*args,**cmd_options)File"/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py",line63,inexecutereturnsuper(Command,self).execute(*args,**options)File"/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/core/management/base.py",line330,inexecuteoutput=self.handle(*args,**options)File"/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py",line139,inhandleinput_value=self.get_input_data(field,message)File"/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py",line192,inget_input_dataraw_value=input(message)UnicodeDecodeError:'utf-8'codeccan'tdecodebyte0xe3inposition10:invalidcontinuationbyte

版权声明:本文由龙竞技官网发布于龙竞技官网,转载请注明出处:Python3 Django创建管理员邮箱时,提示编码错误,怎么解决