问题描述
- Python出现了一个异常卡在那里不动了
-
我是在win8上面操作,运行一个Python项目
Python:2.7node:0.12
npm:2.11
vs:2012
输入run all(这个是自己定义的命令,用于启动项目) 后出现:
2015-08-25 22:13:47 [24784] [WARNING] Your terminal is not configured to receive UTF-8 encoded text. Please adjust your locale settings or force UTF-8 output by setting PYTHONIOENCODING="utf-8". Traceback (most recent call last): File "<string>", line 1, in <module> File "C:Python27Libmultiprocessingforking.py", line 380, in main prepare(preparation_data) File "C:Python27Libmultiprocessingforking.py", line 488, in prepare assert main_name not in sys.modules, main_name AssertionError: __main__ Traceback (most recent call last): File "<string>", line 1, in <module> File "C:Python27Libmultiprocessingforking.py", line 380, in main prepare(preparation_data) File "C:Python27Libmultiprocessingforking.py", line 488, in prepare assert main_name not in sys.modules, main_name AssertionError: __main__
然后就一直卡在这里,
请各位老师指点一下,已经困扰好几天了,不胜感激
解决方案
http://blog.csdn.net/lgy807720302/article/details/7515743
参考这个
解决方案二:
Please adjust your locale settings or force UTF-8 output by
setting PYTHONIOENCODING="utf-8".
字符集有问题,设置成utf8
时间: 2024-11-02 20:09:16