我正在从 CSV 文件导入数据,在输入 210 行后,它向我返回此错误。我正在从 Django shell (manage.py shell) 中执行此操作
ERROR - failed to write data to stream: <open file '<stdout>', mode 'w' at 0x104c8f150>
最佳答案
这是 IPython 编码的问题,它不是 UTF-8。 export PYTHONIOENCODING=UTF-8
将解决它。
关于Python - 错误 - 无法将数据写入流 : <open file '<stdout>' , 模式 'w' 在 0x104c8f150>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28115375/