为了账号安全,请及时绑定邮箱和手机立即绑定

django-admin startproject...问题

maitit@maitit-Lenovo-KL6B-KL6C-Z475:~/文档$ django-admin startproject web
Traceback (most recent call last):
  File "/usr/bin/django-admin", line 21, in <module>
    management.execute_from_command_line()
  File "/home/maitit/.local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/home/maitit/.local/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/maitit/.local/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/maitit/.local/lib/python2.7/site-packages/django/core/management/base.py", line 345, in execute
    output = self.handle(*args, **options)
  File "/home/maitit/.local/lib/python2.7/site-packages/django/core/management/commands/startproject.py", line 34, in handle
    super(Command, self).handle('project', project_name, target, **options)
  File "/home/maitit/.local/lib/python2.7/site-packages/django/core/management/templates.py", line 164, in handle
    if new_path.endswith(extensions) or filename in extra_files:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 13: ordinal not in range(128)

出现这样的情况,我也不知道怎么回事.有文件夹,但是里面什么也没有.

正在回答

2 回答

你这个是不是放在中文目录下面了 刚刚我也出现了 将文件夹目录名改为英文即可


0 回复 有任何疑惑可以回复我~

已经摸索出来,目前能放在Ubuntu的home目录下,其他地方放不了.如何改?求解答.

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
django入门与实践
  • 参与学习       65199    人
  • 解答问题       868    个

手把手带你进入Django开发的大门,充分领略Django的魅力

进入课程

django-admin startproject...问题

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信