uiautomator2报错之packaging版本错

python进行自动化开发时,常遇到以下uiautomator2版本错误信息:

uiautomator2 2.16.23 requires packaging~=20.3, but you have packaging 23.1 which is incompatible.

paddlepaddle 2.5.0 requires protobuf<=3.20.2,>=3.1.0; platform_system == "Windows", but you have protobuf 4.23.4 which is incompatible.

【解决方案】

pip uninstall packaging

pip install packaging==20.3

pip uninstall protobuf

pip install protobuf==3.20.2

你可能感兴趣的:(python,python,pip)