Bad magic number ImportError in python

是源码编译里面版本不对,删除掉源码pyc然后重新编译就可以了

find .-name '*.pyc'-delete
python -m compileall .

更新历史

why when
创建 2013年08月01日
更新 2019年12月9日
posted @ 2015-03-22 22:51  武汉-磨渣  阅读(179)  评论(0编辑  收藏  举报