首页 新闻 会员 周边 捐助

python/django 空项目启动报编码错误

1
悬赏园豆:200 [已关闭问题] 关闭于 2016-03-11 00:37

错误代码:

Traceback (most recent call last):
File "C:/Users/grayzlp/PycharmProjects/TestDjango01/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "C:\Python34\lib\site-packages\django-1.10-py3.4.egg\django\core\management\__init__.py", line 362, in execute_from_command_line
utility.execute()
File "C:\Python34\lib\site-packages\django-1.10-py3.4.egg\django\core\management\__init__.py", line 354, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Python34\lib\site-packages\django-1.10-py3.4.egg\django\core\management\base.py", line 297, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Python34\lib\site-packages\django-1.10-py3.4.egg\django\core\management\commands\runserver.py", line 50, in execute
super(Command, self).execute(*args, **options)
File "C:\Python34\lib\site-packages\django-1.10-py3.4.egg\django\core\management\base.py", line 348, in execute
output = self.handle(*args, **options)
File "C:\Python34\lib\site-packages\django-1.10-py3.4.egg\django\core\management\commands\runserver.py", line 89, in handle
self.run(**options)
File "C:\Python34\lib\site-packages\django-1.10-py3.4.egg\django\core\management\commands\runserver.py", line 98, in run
autoreload.main(self.inner_run, None, options)
File "C:\Python34\lib\site-packages\django-1.10-py3.4.egg\django\utils\autoreload.py", line 334, in main
reloader(wrapped_main_func, args, kwargs)
File "C:\Python34\lib\site-packages\django-1.10-py3.4.egg\django\utils\autoreload.py", line 305, in python_reloader
exit_code = restart_with_reloader()
File "C:\Python34\lib\site-packages\django-1.10-py3.4.egg\django\utils\autoreload.py", line 291, in restart_with_reloader


exit_code = os.spawnve(os.P_WAIT, sys.executable, args, new_environ)
UnicodeEncodeError: 'mbcs' codec can't encode characters in position 0--1: invalid character

系统是win8.1

新建的一个空项目报的错误,希望有人能帮忙解决 

lpzhang的主页 lpzhang | 初学一级 | 园豆:12
提问于:2016-03-10 21:52
< >
分享
所有回答(2)
0

Python字符编码详解

 
 http://www.cnblogs.com/huxi/articles/1897271.html
墨镜带佬星 | 园豆:2310 (老鸟四级) | 2016-03-11 00:35
0

因为你的计算机名称设置了中文字符

XIaoming·zhou | 园豆:202 (菜鸟二级) | 2018-04-12 15:51
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册