Python安装uiautomator2

下载pip安装包

https://pypi.org/search/?q=uiautomator

教程

https://packaging.python.org/tutorials/installing-packages/

pip更新后不能用

ModuleNotFoundError: No module named 'pip._internal' , pip 无法下载软件 解决办法

我用了方法一:

python -m ensurepip
python -m pip install --upgrade pip

pip超时

用pip安装python库下载timeout的解决办法

我们直接用命令:pip install 库名,因网络太慢,导致下载超时~~~

* * *

针对在安装Python库出现的超时问题---总结了如下两种解决方案:

* * *

其一:
pip --default-timeout=100 install -U 库名
例如:
pip --default-timeout=100 install -U numpy

其二:

包源镜像:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 库名
例如:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple superset

使用过的 命令

python -m pip install --upgrade pip setuptools wheel
pip install pillow
pip install Pillow-7.0.0-cp38-cp38-win32.whl
pip install uiautomator2
pip --default-timeout=1000 install -U uiautomator2
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple uiautomator2
pip install -U --pre uiautomator2 -i https://pypi.doubanio.com/simple
pip install D:\Python\Python38-32\other_down\uiautomator2-2.5.3.tar.gz
python -m uiautomator2 init
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pbr

方式

直接安装

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

镜像
a、

pip install -U --pre uiautomator2 -i https://pypi.doubanio.com/simple

b、

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple uiautomator2

3、本地下载

pip install D:\Python\Python38-32\other_down\uiautomator2-2.5.3.tar.gz

C:\Users\ASUS>pip --default-timeout=1000 install -U uiautomator2
Collecting uiautomator2
  Using cached uiautomator2-2.5.3.tar.gz (667 kB)
Collecting six
  Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting requests
  Using cached requests-2.22.0-py2.py3-none-any.whl (57 kB)
Collecting humanize
  Using cached humanize-0.5.1.tar.gz (14 kB)
Collecting whichcraft
  Using cached whichcraft-0.6.1-py2.py3-none-any.whl (5.2 kB)
Collecting logzero~=1.5
  Using cached logzero-1.5.0-py2.py3-none-any.whl (14 kB)
Collecting progress~=1.3
  Using cached progress-1.5.tar.gz (5.8 kB)
Collecting retry~=0.9
  Using cached retry-0.9.2-py2.py3-none-any.whl (8.0 kB)
Collecting adbutils<1.0,>=0.7.1
  Using cached adbutils-0.7.1.tar.gz (153 kB)
    ERROR: Command errored out with exit status 1:
     command: 'd:\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ASUS\\AppData\\Local\\Temp\\pip-install-chdtyuah\\adbutils\\setup.py'"'"'; __file__='"'"'C:\\Users\\ASUS\\AppData\\Local\\Temp\\pip-install-chdtyuah\\adbutils\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\ASUS\AppData\Local\Temp\pip-install-chdtyuah\adbutils\pip-egg-info'
         cwd: C:\Users\ASUS\AppData\Local\Temp\pip-install-chdtyuah\adbutils\
    Complete output (43 lines):
    Traceback (most recent call last):
      File "", line 1, in 
      File "C:\Users\ASUS\AppData\Local\Temp\pip-install-chdtyuah\adbutils\setup.py", line 11, in 
        setuptools.setup(setup_requires=['pbr'], python_requires='>=3.5', pbr=True)
      File "d:\python\python38-32\lib\site-packages\setuptools\__init__.py", line 144, in setup
        _install_setup_requires(attrs)
      File "d:\python\python38-32\lib\site-packages\setuptools\__init__.py", line 139, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "d:\python\python38-32\lib\site-packages\setuptools\dist.py", line 716, in fetch_build_eggs
        resolved_dists = pkg_resources.working_set.resolve(
      File "d:\python\python38-32\lib\site-packages\pkg_resources\__init__.py", line 780, in resolve
        dist = best[req.key] = env.best_match(
      File "d:\python\python38-32\lib\site-packages\pkg_resources\__init__.py", line 1065, in best_match
        return self.obtain(req, installer)
      File "d:\python\python38-32\lib\site-packages\pkg_resources\__init__.py", line 1077, in obtain
        return installer(requirement)
      File "d:\python\python38-32\lib\site-packages\setuptools\dist.py", line 786, in fetch_build_egg
        return cmd.easy_install(req)
      File "d:\python\python38-32\lib\site-packages\setuptools\command\easy_install.py", line 665, in easy_install
        dist = self.package_index.fetch_distribution(
      File "d:\python\python38-32\lib\site-packages\setuptools\package_index.py", line 655, in fetch_distribution
        dist = find(requirement)
      File "d:\python\python38-32\lib\site-packages\setuptools\package_index.py", line 635, in find
        loc = self.download(dist.location, tmpdir)
      File "d:\python\python38-32\lib\site-packages\setuptools\package_index.py", line 579, in download
        found = self._download_url(scheme.group(1), spec, tmpdir)
      File "d:\python\python38-32\lib\site-packages\setuptools\package_index.py", line 824, in _download_url
        return self._attempt_download(url, filename)
      File "d:\python\python38-32\lib\site-packages\setuptools\package_index.py", line 830, in _attempt_download
        headers = self._download_to(url, filename)
      File "d:\python\python38-32\lib\site-packages\setuptools\package_index.py", line 745, in _download_to
        block = fp.read(bs)
      File "d:\python\python38-32\lib\http\client.py", line 454, in read
        n = self.readinto(b)
      File "d:\python\python38-32\lib\http\client.py", line 498, in readinto
        n = self.fp.readinto(b)
      File "d:\python\python38-32\lib\socket.py", line 669, in readinto
        return self._sock.recv_into(b)
      File "d:\python\python38-32\lib\ssl.py", line 1241, in recv_into
        return self.read(nbytes, buffer)
      File "d:\python\python38-32\lib\ssl.py", line 1099, in read
        return self._sslobj.read(len, buffer)
    socket.timeout: The read operation timed out
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

总是报time out,换成镜像:

C:\Users\ASUS>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple uiautomator2
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting uiautomator2
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/cf/ae/74ace2af961d14034555ac3d20cf7165bea3ac1164727301af5dabdcd985/uiautomator2-2.5.3.tar.gz (667 kB)
     |████████████████████████████████| 667 kB 2.2 MB/s
    ERROR: Command errored out with exit status 1:
     command: 'd:\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ASUS\\AppData\\Local\\Temp\\pip-install-6y94c__6\\uiautomator2\\setup.py'"'"'; __file__='"'"'C:\\Users\\ASUS\\AppData\\Local\\Temp\\pip-install-6y94c__6\\uiautomator2\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\ASUS\AppData\Local\Temp\pip-install-6y94c__6\uiautomator2\pip-egg-info'
         cwd: C:\Users\ASUS\AppData\Local\Temp\pip-install-6y94c__6\uiautomator2\
    Complete output (39 lines):
    Traceback (most recent call last):
      File "", line 1, in 
      File "C:\Users\ASUS\AppData\Local\Temp\pip-install-6y94c__6\uiautomator2\setup.py", line 8, in 
        setuptools.setup(setup_requires=['pbr'], python_requires='>=3.6', pbr=True)
      File "d:\python\python38-32\lib\site-packages\setuptools\__init__.py", line 144, in setup
        _install_setup_requires(attrs)
      File "d:\python\python38-32\lib\site-packages\setuptools\__init__.py", line 139, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "d:\python\python38-32\lib\site-packages\setuptools\dist.py", line 716, in fetch_build_eggs
        resolved_dists = pkg_resources.working_set.resolve(
      File "d:\python\python38-32\lib\site-packages\pkg_resources\__init__.py", line 780, in resolve
        dist = best[req.key] = env.best_match(
      File "d:\python\python38-32\lib\site-packages\pkg_resources\__init__.py", line 1065, in best_match
        return self.obtain(req, installer)
      File "d:\python\python38-32\lib\site-packages\pkg_resources\__init__.py", line 1077, in obtain
        return installer(requirement)
      File "d:\python\python38-32\lib\site-packages\setuptools\dist.py", line 786, in fetch_build_egg
        return cmd.easy_install(req)
      File "d:\python\python38-32\lib\site-packages\setuptools\command\easy_install.py", line 665, in easy_install
        dist = self.package_index.fetch_distribution(
      File "d:\python\python38-32\lib\site-packages\setuptools\package_index.py", line 654, in fetch_distribution
        self.find_packages(requirement)
      File "d:\python\python38-32\lib\site-packages\setuptools\package_index.py", line 487, in find_packages
        self.scan_url(self.index_url + requirement.unsafe_name + '/')
      File "d:\python\python38-32\lib\site-packages\setuptools\package_index.py", line 827, in scan_url
        self.process_url(url, True)
      File "d:\python\python38-32\lib\site-packages\setuptools\package_index.py", line 357, in process_url
        page = f.read()
      File "d:\python\python38-32\lib\http\client.py", line 467, in read
        s = self._safe_read(self.length)
      File "d:\python\python38-32\lib\http\client.py", line 608, in _safe_read
        data = self.fp.read(amt)
      File "d:\python\python38-32\lib\socket.py", line 669, in readinto
        return self._sock.recv_into(b)
      File "d:\python\python38-32\lib\ssl.py", line 1241, in recv_into
        return self.read(nbytes, buffer)
      File "d:\python\python38-32\lib\ssl.py", line 1099, in read
        return self._sslobj.read(len, buffer)
    socket.timeout: The read operation timed out
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

上面的log有出现之前不一样的地方:

      File "C:\Users\ASUS\AppData\Local\Temp\pip-install-6y94c__6\uiautomator2\setup.py", line 8, in 
        setuptools.setup(setup_requires=['pbr'], python_requires='>=3.6', pbr=True)

缺少pbr,安装:

C:\Users\ASUS>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pbr
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pbr
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/7a/db/a968fd7beb9fe06901c1841cb25c9ccb666ca1b9a19b114d1bbedf1126fc/pbr-5.4.4-py2.py3-none-any.whl (110 kB)
     |████████████████████████████████| 110 kB 930 kB/s
Installing collected packages: pbr
Successfully installed pbr-5.4.4

安装pbr成功,继续uiautomator,换成本地

C:\Users\ASUS>pip install D:\Python\Python38-32\other_down\uiautomator2-2.5.3.tar.gz
Processing d:\python\python38-32\other_down\uiautomator2-2.5.3.tar.gz
    ERROR: Command errored out with exit status 1:
     command: 'd:\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ASUS\\AppData\\Local\\Temp\\pip-req-build-7oanwxhh\\setup.py'"'"'; __file__='"'"'C:\\Users\\ASUS\\AppData\\Local\\Temp\\pip-req-build-7oanwxhh\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\ASUS\AppData\Local\Temp\pip-req-build-7oanwxhh\pip-egg-info'
         cwd: C:\Users\ASUS\AppData\Local\Temp\pip-req-build-7oanwxhh\
    Complete output (16 lines):
    ERROR:root:Error parsing
    Traceback (most recent call last):
      File "d:\python\python38-32\lib\site-packages\pbr\core.py", line 96, in pbr
        attrs = util.cfg_to_args(path, dist.script_args)
      File "d:\python\python38-32\lib\site-packages\pbr\util.py", line 271, in cfg_to_args
        pbr.hooks.setup_hook(config)
      File "d:\python\python38-32\lib\site-packages\pbr\hooks\__init__.py", line 25, in setup_hook
        metadata_config.run()
      File "d:\python\python38-32\lib\site-packages\pbr\hooks\base.py", line 27, in run
        self.hook()
      File "d:\python\python38-32\lib\site-packages\pbr\hooks\metadata.py", line 25, in hook
        self.config['version'] = packaging.get_version(
      File "d:\python\python38-32\lib\site-packages\pbr\packaging.py", line 870, in get_version
        raise Exception("Versioning for this project requires either an sdist"
    Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name uiautomator2 was given, but was not able to be found.
    error in setup command: Error parsing C:\Users\ASUS\AppData\Local\Temp\pip-req-build-7oanwxhh\setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name uiautomator2 was given, but was not able to be found.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

换了镜像:

C:\Users\ASUS>pip install -U --pre uiautomator2 -i https://pypi.doubanio.com/simple
Looking in indexes: https://pypi.doubanio.com/simple
Collecting uiautomator2
  Downloading https://pypi.doubanio.com/packages/cf/ae/74ace2af961d14034555ac3d20cf7165bea3ac1164727301af5dabdcd985/uiautomator2-2.5.3.tar.gz (667 kB)
     |████████████████████████████████| 667 kB 6.4 MB/s
Collecting six
  Downloading https://pypi.doubanio.com/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting requests
  Downloading https://pypi.doubanio.com/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57 kB)
     |████████████████████████████████| 57 kB 643 kB/s
Collecting humanize
  Downloading https://pypi.doubanio.com/packages/8c/e0/e512e4ac6d091fc990bbe13f9e0378f34cf6eecd1c6c268c9e598dcf5bb9/humanize-0.5.1.tar.gz (14 kB)
Collecting whichcraft
  Downloading https://pypi.doubanio.com/packages/b5/a2/81887a0dae2e4d2adc70d9a3557fdda969f863ced51cd3c47b587d25bce5/whichcraft-0.6.1-py2.py3-none-any.whl (5.2 kB)
Collecting logzero~=1.5
  Downloading https://pypi.doubanio.com/packages/97/24/27295d318ea8976b12cf9cc51d82e7c7129220f6a3cc9e3443df3be8afdb/logzero-1.5.0-py2.py3-none-any.whl (14 kB)
Collecting progress~=1.3
  Downloading https://pypi.doubanio.com/packages/38/ef/2e887b3d2b248916fc2121889ce68af8a16aaddbe82f9ae6533c24ff0d2b/progress-1.5.tar.gz (5.8 kB)
Collecting retry~=0.9
  Downloading https://pypi.doubanio.com/packages/4b/0d/53aea75710af4528a25ed6837d71d117602b01946b307a3912cb3cfcbcba/retry-0.9.2-py2.py3-none-any.whl (8.0 kB)
Collecting adbutils<1.0,>=0.7.1
  Downloading https://pypi.doubanio.com/packages/f2/80/751fa9061215ca192bddbadc6ca6f048b28b5d2998895025dae77a3b410c/adbutils-0.7.1.tar.gz (153 kB)
     |████████████████████████████████| 153 kB 2.2 MB/s
Collecting Deprecated~=1.2.6
  Downloading https://pypi.doubanio.com/packages/f6/89/62912e01f3cede11edcc0abf81298e3439d9c06c8dce644369380ed13f6d/Deprecated-1.2.7-py2.py3-none-any.whl (8.3 kB)
Requirement already satisfied, skipping upgrade: Pillow in d:\python\python38-32\lib\site-packages (from uiautomator2) (7.0.0)
Collecting lxml>=4.3
  Downloading https://pypi.doubanio.com/packages/c2/da/18dba809220a47a9e0406b41d4fc3215652c8558acc156d6fa96b2a0e59b/lxml-4.5.0-cp38-cp38-win32.whl (3.3 MB)
     |████████████████████████████████| 3.3 MB 105 kB/s
Collecting chardet<3.1.0,>=3.0.2
  Downloading https://pypi.doubanio.com/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 6.4 MB/s
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
  Downloading https://pypi.doubanio.com/packages/e8/74/6e4f91745020f967d09332bb2b8b9b10090957334692eb88ea4afe91b77f/urllib3-1.25.8-py2.py3-none-any.whl (125 kB)
     |████████████████████████████████| 125 kB 6.4 MB/s
Collecting certifi>=2017.4.17
  Downloading https://pypi.doubanio.com/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156 kB)
     |████████████████████████████████| 156 kB 3.2 MB/s
Collecting idna<2.9,>=2.5
  Downloading https://pypi.doubanio.com/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58 kB)
     |████████████████████████████████| 58 kB 683 kB/s
Collecting colorama; sys_platform == "win32"
  Downloading https://pypi.doubanio.com/packages/c9/dc/45cdef1b4d119eb96316b3117e6d5708a08029992b2fee2c143c7a0a5cc5/colorama-0.4.3-py2.py3-none-any.whl (15 kB)
Collecting py<2.0.0,>=1.4.26
  Downloading https://pypi.doubanio.com/packages/99/8d/21e1767c009211a62a8e3067280bfce76e89c9f876180308515942304d2d/py-1.8.1-py2.py3-none-any.whl (83 kB)
     |████████████████████████████████| 83 kB 249 kB/s
Collecting decorator>=3.4.2
  Downloading https://pypi.doubanio.com/packages/8f/b7/f329cfdc75f3d28d12c65980e4469e2fa373f1953f5df6e370e84ea2e875/decorator-4.4.1-py2.py3-none-any.whl (9.2 kB)
Collecting deprecation<3.0,>=2.0.6
  Downloading https://pypi.doubanio.com/packages/b9/2a/d5084a8781398cea745c01237b95d9762c382697c63760a95cc6a814ad3a/deprecation-2.0.7-py2.py3-none-any.whl (11 kB)
Collecting apkutils2<2.0,>=1.0.0
  Downloading https://pypi.doubanio.com/packages/e5/d0/432fb6fb1fe48aa0ea1c80e8dec4a26f70c868999c076f92af88582ae91a/apkutils2-1.0.0.tar.gz (60 kB)
     |████████████████████████████████| 60 kB 633 kB/s
Collecting wrapt<2,>=1.10
  Downloading https://pypi.doubanio.com/packages/23/84/323c2415280bc4fc880ac5050dddfb3c8062c2552b34c2e512eb4aa68f79/wrapt-1.11.2.tar.gz (27 kB)
Collecting packaging
  Downloading https://pypi.doubanio.com/packages/98/42/87c585dd3b113c775e65fd6b8d9d0a43abe1819c471d7af702d4e01e9b20/packaging-20.1-py2.py3-none-any.whl (36 kB)
Collecting pyelftools
  Downloading https://pypi.doubanio.com/packages/bb/2f/bf41f3c3867d6707fa9b872658bb23088a64d0e522e8979f54c694b8cbe1/pyelftools-0.26-py2.py3-none-any.whl (136 kB)
     |████████████████████████████████| 136 kB 1.6 MB/s
Collecting cigam
  Downloading https://pypi.doubanio.com/packages/3c/d0/19ff49c1938aea4e0076ee084ca23845408cffb51582b2be975f926533b5/cigam-0.0.3-py3-none-any.whl (3.8 kB)
Collecting xmltodict
  Downloading https://pypi.doubanio.com/packages/28/fd/30d5c1d3ac29ce229f6bdc40bbc20b28f716e8b363140c26eff19122d8a5/xmltodict-0.12.0-py2.py3-none-any.whl (9.2 kB)
Collecting pyparsing>=2.0.2
  Downloading https://pypi.doubanio.com/packages/5d/bc/1e58593167fade7b544bfe9502a26dc860940a79ab306e651e7f13be68c2/pyparsing-2.4.6-py2.py3-none-any.whl (67 kB)
     |████████████████████████████████| 67 kB 710 kB/s
Building wheels for collected packages: uiautomator2, humanize, progress, adbutils, apkutils2, wrapt
  Building wheel for uiautomator2 (setup.py) ... done
  Created wheel for uiautomator2: filename=uiautomator2-2.5.3-py3-none-any.whl size=210514 sha256=b3714e4d90ba853ac4ec67d76b9475dd93f9618012bcdc2080154e51115909ed
  Stored in directory: c:\users\asus\appdata\local\pip\cache\wheels\72\20\da\615254ea90325cbea5c400f9e82cd64406d32f9c72ffeeb73e
  Building wheel for humanize (setup.py) ... done
  Created wheel for humanize: filename=humanize-0.5.1-py3-none-any.whl size=17906 sha256=e50632dbd3234414c468fe6ffc4105a00ba737f349cd85b9177e02de5257c162
  Stored in directory: c:\users\asus\appdata\local\pip\cache\wheels\a5\6d\f6\bfe9a422d99e2d2585af8d88476c8b9127afa83e488bf8bb06
  Building wheel for progress (setup.py) ... done
  Created wheel for progress: filename=progress-1.5-py3-none-any.whl size=8078 sha256=d214385bc26e0f8c89a473029c30364d0489b0d5fab0e389f8b03da1337cf64b
  Stored in directory: c:\users\asus\appdata\local\pip\cache\wheels\c7\5a\68\8955725d5232f85f97290e913cae821d73a3a74f3e1cc039a9
  Building wheel for adbutils (setup.py) ... done
  Created wheel for adbutils: filename=adbutils-0.7.1-py2.py3-none-any.whl size=22061 sha256=3c9f795aa7bad1f1c05cea5d640587ac547cd848fb96cf562d1347b9528b2c58
  Stored in directory: c:\users\asus\appdata\local\pip\cache\wheels\d5\07\b5\8767268a55ae4976ff0b608ab58f8b12fab50e1ab10a47fd89
  Building wheel for apkutils2 (setup.py) ... done
  Created wheel for apkutils2: filename=apkutils2-1.0.0-py3-none-any.whl size=69238 sha256=b82356b7fe5888f514157c1fcb8943663b0c4b411c3c75eba21289db92aecf32
  Stored in directory: c:\users\asus\appdata\local\pip\cache\wheels\a8\19\a1\9a64f00921e12c21b48d7b24ddcf3c803bfcc9570d6b403ebe
  Building wheel for wrapt (setup.py) ... done
  Created wheel for wrapt: filename=wrapt-1.11.2-py3-none-any.whl size=19595 sha256=276cf340117db3d2286d36132f9f2ab45f360587090acf1e98ff6f5de399c866
  Stored in directory: c:\users\asus\appdata\local\pip\cache\wheels\27\84\11\a21027ef83f2919d939e6b0096570aadc23fd95255fa54bc22
Successfully built uiautomator2 humanize progress adbutils apkutils2 wrapt
Installing collected packages: six, chardet, urllib3, certifi, idna, requests, humanize, whichcraft, colorama, logzero, progress, py, decorator, retry, pyparsing, packaging, deprecation, pyelftools, cigam, xmltodict, apkutils2, adbutils, wrapt, Deprecated, lxml, uiautomator2
Successfully installed Deprecated-1.2.7 adbutils-0.7.1 apkutils2-1.0.0 certifi-2019.11.28 chardet-3.0.4 cigam-0.0.3 colorama-0.4.3 decorator-4.4.1 deprecation-2.0.7 humanize-0.5.1 idna-2.8 logzero-1.5.0 lxml-4.5.0 packaging-20.1 progress-1.5 py-1.8.1 pyelftools-0.26 pyparsing-2.4.6 requests-2.22.0 retry-0.9.2 six-1.14.0 uiautomator2-2.5.3 urllib3-1.25.8 whichcraft-0.6.1 wrapt-1.11.2 xmltodict-0.12.0

参考

[Android自动化] 在 pip-9.0.1 版本情况下安装 uiautomator2 报错的解决办法

你可能感兴趣的:(Python安装uiautomator2)