使用ez_setup.py安装setuptools报错如下Traceback (most recent call last): File "httpservice.py", line 5, in import SimpleHTTPServer File "C:\Python27\lib\...
分类:
编程语言 时间:
2014-08-13 18:40:56
阅读次数:
277
import sysreload(sys)sys.setdefaultencoding('utf-8')好了,通过上面短短的三行,我们算是很好的解决了这个问题了,同样的方式也可以应用到UnicodeDecodeError上。当然这个技巧来自于网络,我还找到其他特别的办法,但是感觉还是这个比较靠谱,有...
分类:
编程语言 时间:
2014-08-06 14:36:11
阅读次数:
502
Q:在安装setuptools时Python ez_setup.py,或者安装其他egg包,有时候会碰到: UnicodeDecodeError错误,这是为什么呢?
安装setuptools时UnicodeDecodeError错误
mimetypes.init() # try to read system mime.types
File "C:\Python27\lib\mim...
分类:
其他好文 时间:
2014-08-05 19:35:50
阅读次数:
201
Python2.7在Windows上一个bug,UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 33: ordinal not in range(128)...
分类:
编程语言 时间:
2014-08-04 14:33:57
阅读次数:
426
在使用django和flask时,发现加载css、js等静态文件时会因为UnicodeDecodeError而失败,在网上搜到了一篇文章,完美解决: 解决方案如下: 编辑Python27\Lib\mimetypes.py文件,全选,替换为以下patch后的正确脚本...
分类:
编程语言 时间:
2014-07-29 18:26:52
阅读次数:
412
安装ez_setup.py时出现了这个问题:UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)Something went wrong during the...
分类:
编程语言 时间:
2014-07-21 23:27:53
阅读次数:
236
最近在学习用Python开发web,使用的是web框架,在win8.1平台下安装SAE和Flask的时候总是在ntpath.py这个UnicodeDecodeError模块报错。84行 result_path = result_path+ p_path 显示的错误就是UnicodeDecode...
分类:
其他好文 时间:
2014-07-21 08:20:06
阅读次数:
212
问题
新装了CentOS 6.5系统,打算使用yum安装程序是出现了如下错误:
Loading mirror speeds from cached hostfile
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in
yummain.user_main(sys.argv[1:], exit_c...
分类:
其他好文 时间:
2014-07-20 22:46:33
阅读次数:
381
重装了系统(ubuntu 14.04)原来正常可用的OpenERP项目在切换到开发者模式的时候报错:UnicodeDecodeError: 'ascii' codec can't decode byte 0x?? in position 1: ordinal not in range(128)而在服...
分类:
编程语言 时间:
2014-07-19 16:02:16
阅读次数:
242
之前在windows下使用python调用某些模块时都会报错,像这样:C:\Documents and Settings\Administrator>python -m CGIHTTPServerTraceback (most recent call last): File "C:\Python2....
分类:
编程语言 时间:
2014-07-03 09:41:18
阅读次数:
656