python ImportError: No module named ××× in linux

来源:互联网 发布:java棋牌游戏源码 编辑:程序博客网 时间:2024/06/03 15:08

importError: No module named ×××


caused by path problems,


点击打开链接1  stack overflow(this worked)

点击打开链接2  csdn



here are my solution,

add a line in the ipdl.py

sys.path.append(os.path.join(os.path.dirname(__file__), '../../python/mozbuild/'))

and  another line in the parser.py

sys.path.append(os.path.join(os.path.dirname(__file__), '../../../other-licenses/ply'))


and the importError fixed.



the method of add a sys.path in terminal :

http://www.cnblogs.com/cj2014/p/3867894.html(

python和linux的环境设置/PATH

)












原创粉丝点击