此时先检查一下有没有安装Appium-Python-Client,如果没有安装
Appium-Python-Client就在控制台输入
pip install Appium-Python-Client进行Appium-Python-Client的安装,安装完后在Pycharm中导入appium模块时还会出现ModuleNotFoundError: No module named ‘appium‘的错误,那就是没有在Pycharm中配置ProjectInterpreter。
打开Pycharm,PyCharm->Preferences->Project Interpreter
点击左下角的+号进入Available Packages在输入框中输入Appium-Python-Client,再点击左下角的下载将Appium-Python-Client下载下来,
下载成功之后回到Preferences界面,发现已经多了Appium-Python-Client,此时已经配置成功,回到Pycharm再导入appium就不会报错了。
https://group.jd.com/thread/20000001/26285684/20000004.htm
Pycharm中使用from appium import webdriver时报错:ModuleNotFoundError: No module named 'appium'