Open zhijiasun opened 10 years ago
使用2.7吧
只支持2.7.x,我也刚碰到了
听说是支持python3的 要是因为个xadmin 就换成python2太不值了(听说python3会鄙视python2) hhahah 不知到那位大神能搞定这个
楼主可以改成这个 把utf8换成 import importlib importlib.reload(sys)
里面都有python 2.x print语法,除了重构重写,才能支持python 3.x.
You probably wanted imp.reload()
.
from imp import reload
In Python 2.x, this was a builtin, but in 3.x, it's in the imp module.
使用python3,报如下错误: File "python3.3/site-packages/xadmin/sites.py", line 8, in
reload(sys)
NameError: name 'reload' is not defined
python3中reload不是内置的