Anaconda安装uiautomator2

本文详细介绍了在Anaconda环境下安装uiautomator2遇到的问题及解决方法,包括使用conda安装失败后转向cmd使用pip,调整超时时间,处理安装警告,以及通过清华镜像网站避免下载超时的解决方案。
摘要由CSDN通过智能技术生成

进入Anaconda prompt,使用

conda install uiautomator2

出现PackagesNotFoundError: The following packages are not available from current channels:
接着使用

anaconda search -t conda uiautomator2

发现搜索结果为空,于是放弃,进入cmd,使用

pip install --upgrade --pre uiautomator2

发现下载极慢,出现超时错误requests.packages.urllib3.exceptions.ReadTimeoutError:
于是设置默认超时时间

pip  --default-timeout=100 install uiautomator2

终于安装成功,但出现警告:

 WARNING: The script uiautomator2.exe is installed in 'C:\Users\luojie\AppData\Roaming\Python\Python37\Scripts' which is not on PATH.  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

可是正常使用,但发现这个库安装到了python路径,而不是anaconda路径,于是找到已下载的whl文件,按照

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值