擅长:python、mysql、java
<p>这可能是由于用于stdin的编码不支持在<code>input()</code>提示符处键入的字符。在</p>
<p>在运行<code>createsuperuser</code>命令之前,可以尝试使用<a href="https://docs.python.org/3/using/cmdline.html#envvar-PYTHONIOENCODING" rel="nofollow noreferrer">^{<cd3>}</a>环境变量显式地将编码设置为<code>UTF-8</code>:</p>
<pre><code>export PYTHONIOENCODING="UTF-8"; python3.6 manage.py createsuperuser
</code></pre>