File "/usr/lib/python2.7/genericpath.py", line 29, in isfile
st = os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 75-77: ordinal not in range(128)
一直报环境的编码错误,网上看了很多的资料,都没有解决,在/usr/lib/python2.7 里面修改了 sitecustomize.py 增加了
import sys
reload(sys)
sys.setdefaultencoding('utf8')
依然报这个错误,无论怎么修改编码,都报这个错误,之前是好好的,突然就抽筋了。
求大神指点!!!