51Testing软件测试论坛

标题: appium+python 遇到的问题 [打印本页]

作者: xulining    时间: 2017-8-9 16:24
标题: appium+python 遇到的问题
1.在运行代码是出现的错误
Traceback (most recent call last): File "ITest0623.py", line 9, in <module> from appium import webdriver ImportError: No module named appium

在脚本中会有:from appium import webdriver
第一次运行时可能会遇到这样的error:No module named appium
之所以会报这样的error是因为没有装client
client下载地址 :https://github.com/appium/python-client

下载下来后,python setup.py install
还解决不了
原因是没有配置Project Interpreter。步骤如下:

    PyCharm->Preferences->Project Interpreter

    双击pip,看到 Available Packages窗口。输入appium,选择“appium-python-client”安装

    PyCharm的运行结果





欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2