Python3.5和Django 1.8是否创建超级用户?

Python3.5和Django 1.8是否创建超级用户?,python,django,python-3.x,django-1.8,Python,Django,Python 3.x,Django 1.8,我有Windows8、Python3.5和Django版本1.8.2 根据Django文档的建议,我尝试使用以下代码创建超级用户: python manage.py createsuperuser 当我输入上述命令时,它会提示我输入用户名, 当我输入用户名时,它会提示我输入电子邮件;当我输入电子邮件地址而不是提示输入密码时,它会显示以下错误 G:\djangblog\mysite>python manage.py createsuperuser Username (leave blan

我有Windows8、Python3.5和Django版本1.8.2

根据Django文档的建议,我尝试使用以下代码创建超级用户:

python manage.py createsuperuser
当我输入上述命令时,它会提示我输入用户名, 当我输入用户名时,它会提示我输入电子邮件;当我输入电子邮件地址而不是提示输入密码时,它会显示以下错误

G:\djangblog\mysite>python manage.py createsuperuser

Username (leave blank to use 'saphal'): admin

Email address: local@admin.com
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "E:\software_installed\python\lib\site-packages\django\core\management\__
init__.py", line 338, in execute_from_command_line
    utility.execute()
  File "E:\software_installed\python\lib\site-packages\django\core\management\__
init__.py", line 330, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "E:\software_installed\python\lib\site-packages\django\core\management\ba
se.py", line 390, in run_from_argv
    self.execute(*args, **cmd_options)
  File "E:\software_installed\python\lib\site-packages\django\contrib\auth\manag
ement\commands\createsuperuser.py", line 50, in execute
    return super(Command, self).execute(*args, **options)
  File "E:\software_installed\python\lib\site-packages\django\core\management\ba
se.py", line 441, in execute
    output = self.handle(*args, **options)
  File "E:\software_installed\python\lib\site-packages\django\contrib\auth\manag
ement\commands\createsuperuser.py", line 124, in handle
    password = getpass.getpass()
  File "E:\software_installed\python\lib\getpass.py", line 104, in win_getpass
    msvcrt.putwch(c)
AttributeError: module 'msvcrt' has no attribute 'putwch'
G:\djangblog\mysite>python manage.py createsuperuser
用户名(保留为空以使用“saphal”):admin
电邮地址:local@admin.com
回溯(最近一次呼叫最后一次):
文件“manage.py”,第10行,在
从命令行(sys.argv)执行命令
文件“E:\software\u installed\python\lib\site packages\django\core\management\__
从命令行执行命令行中的第338行
utility.execute()
文件“E:\software\u installed\python\lib\site packages\django\core\management\__
执行中的第330行“init___.py”
self.fetch_命令(子命令)。从_argv(self.argv)运行_
文件“E:\software\u installed\python\lib\site packages\django\core\management\ba
se.py”,第390行,从argv开始运行
self.execute(*args,**cmd_选项)
文件“E:\software\u installed\python\lib\site packages\django\contrib\auth\manag
ement\commands\createsuperuser.py”,执行中的第50行
返回super(命令,self).execute(*args,**选项)
文件“E:\software\u installed\python\lib\site packages\django\core\management\ba
se.py”,执行中第441行
输出=self.handle(*args,**选项)
文件“E:\software\u installed\python\lib\site packages\django\contrib\auth\manag
ement\commands\createsuperuser.py”,第124行,在句柄中
password=getpass.getpass()
win\u getpass中的文件“E:\software\u installed\python\lib\getpass.py”,第104行
msvcrt.putwch(c)
AttributeError:模块“msvcrt”没有属性“putwch”
*我已经在E盘上安装了python,在G盘上安装了我的工作文件夹。

这是一个问题,已解决


您可以升级到最新的3.5版本;或者降级到3.4.3(推荐版本)。

3.5甚至还没有发布(并且在未来几个月内不会发布)。您可能会发现更多错误。您为什么使用预生产版本?谢谢您的回复。对不起,迟了回复!!