我正在尝试使用appium启动,当我尝试在python中导入appium时出现以下错误:
C:\Users\Sams PC>python
Python 3.8.4 (tags/v3.8.4:dfa645a, Jul 13 2020, 16:46:45) [MSC v.1924 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import appium
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'appium'
为了涵盖我所拥有的:
阿皮姆:
C:\Users\Sams PC>appium
[Appium] Welcome to Appium v1.17.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
Appium python客户端
C:\Users\Sams PC>pip install appium-python-client
Requirement already satisfied: appium-python-client in c:\users\sams pc\appdata\local\programs\python\python37\lib\site-packages (1.0.2)
Requirement already satisfied: selenium<4,>=3.14.1 in c:\users\sams pc\appdata\local\programs\python\python37\lib\site-packages (from appium-python-client) (3.141.0)
Requirement already satisfied: urllib3 in c:\users\sams pc\appdata\local\programs\python\python37\lib\site-packages (from selenium<4,>=3.14.1->appium-python-client) (1.25.7)
C:\Users\Sams PC>
我已经安装并设置了Android Studio:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Android Studio>dir
Volume in drive C has no label.
Volume Serial Number is C08F-2C8E
Directory of C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Android Studio
07/15/2020 06:26 PM <DIR> .
07/15/2020 06:26 PM <DIR> ..
07/15/2020 06:26 PM 1,181 Android Studio.lnk
1 File(s) 1,181 bytes
2 Dir(s) 30,455,201,792 bytes free
我已经看过了所有其他类似的问题,但我不太明白我遗漏了什么,因为我已经下载了它外观所需的所有内容
您的pip指向Python3.7,而您的Python位于3.8。 将指向3.7的pip路径更改为3.8,然后再次执行
pip install Appium-Python-Client
相关问题 更多 >
编程相关推荐