失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > pip install --pre -U uiautomator2报错一直安装失败

pip install --pre -U uiautomator2报错一直安装失败

时间:2020-10-08 05:41:53

相关推荐

pip install --pre -U uiautomator2报错一直安装失败

最近在研究app自动化uiautomator2,在安装时pip install --pre uiautomator2 时报time out这个错,

pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files .',port=443): Read timed out.

是由于国内网络原因,python包的下载速度非常慢,查看pip 文档,只要在 pip的时候控制超时即可, 具体参数为 --default-timeout=1000, 后面的时间可以自己指定。

解决方法:

1.

pip --default-timeout=1000 install -U --pre uiautomator2

2.或者去最后去/openatx/uiautomator2,用pip3安装,也可安装成功

需cd到python的Scripts目录,再使用pip3安装

D:\python36\Scripts>pip3 install -U uiautomator2

如果觉得《pip install --pre -U uiautomator2报错一直安装失败》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。