在monkeyrunner如何导入python模块???

180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
 an exception
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
ll last):
  File "C:\Users\CeS\Desktop\jzliuju1.py", line 8, in <module>
    from PIL import Image
ImportError: No module named PIL


180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
y.ImportError(Py.java:304)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
mp.import_first(imp.java:755)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
mp.import_module_level(imp.java:837)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
mp.importName(imp.java:917)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
mportFunction.__call__(__builtin__.java:1220)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
yObject.__call__(PyObject.java:357)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
_builtin__.__import__(__builtin__.java:1173)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
mp.importFromAs(imp.java:1011)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
mp.importFrom(imp.java:987)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
._pyx0.f$0(C:\Users\CeS\Desktop\jzliuju1.py:55)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
._pyx0.call_function(C:\Users\CeS\Desktop\jzliuju1.py)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
yTableCode.call(PyTableCode.java:165)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
yCode.call(PyCode.java:18)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
y.runCode(Py.java:1275)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
_builtin__.execfile_flags(__builtin__.java:522)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
ythonInterpreter.execfile(PythonInterpreter.java:225)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
yrunner.ScriptRunner.run(ScriptRunner.java:116)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
yrunner.MonkeyRunnerStarter.run(MonkeyRunnerStarter.java:77)
180611 10:48:39.448:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]
yrunner.MonkeyRunnerStarter.main(MonkeyRunnerStarter.java:189)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值