前几天,使用pip 命令安装uiautomator2时,报错。
cmd依次执行下面命令(记得配置Scripts系统变量)
进入到Python安装目录下的Scripts目录,依次执行
cd Python/Scripts
pip install --pre uiautomator2
pip install pillow
但是出现这样的报错信息:
pip install uiautomator2
Collecting uiautomator2
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)’),)’: /simple/uiautomator2/
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)’),)’: /simple/uiautomator2/
…
问题原因:
是因为勾选了浏览器的 连接->局域网设置 ->代理服务器,如下:
解决方法:
取消勾选即可。
更多测试交流,加好友: