Monkeyrunner doesnt find my module

半腔热情 提交于 2019-12-11 12:53:21

问题


I have installed psutil module.
It works well if run by the python interpreter but when I try to import the module in a monkeyrunner script,it gives

No such module.

Is there any way through which i use psutil module in monkeyrunner?

Note-i am using the monkeyrunner with the android ics-x86 version


回答1:


Try to name your script something.py. This way you have a python script where you can import the modules. When you run the script with monkeyrunner, some python modules are not recognized. Monkeyrunner does not equal python 100%. It does not have all the power and functionality.



来源:https://stackoverflow.com/questions/12346337/monkeyrunner-doesnt-find-my-module

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!