Weditor安装遇到了问题:Preparing metadata (pyproject.toml) did not run successfully.

问题现象

uiautomator2环境部署的时候,在安装Weditor 的时候并不顺利,安装过程遇到的问题如下

Weditor安装遇到了问题:Preparing metadata (pyproject.toml) did not run successfully._第1张图片

定位过程

尼玛,耗费我2小时,借助度娘,总结下网友描述这个问题的原因:

  1. weditor不支持python3.1以上版本,要降低python版本
    -

  2. setup包版本太低,使用pip install --upgrade pip setuptools==45.2.0升级setup包

    • 先git clone https://github.com/openatx/weditor,再pip3 install -e weditor

根据上面的原因,我首先想到的就是我的python版本,确实挺高,我的版本是
python 3.10.11,
windows10 64bit专业版,
setuptools65.5.0
Weditor安装遇到了问题:Preparing metadata (pyproject.toml) did not run successfully._第2张图片

总结分析

方法1我要回退版本,我闲麻烦,就直接pass了,
方法2失败,
只能尝试用方法3,结果方法3成功解决问题

记录解决过程

  1. windows下载git安装包,下载后双击安装。

    git 官网: https://git-scm.com/download/win

  2. git bash 打开git的命令行窗口,执行git init,关闭git bash

  3. 打开cmd,执行 git clone https://github.com/openatx/weditor
    Weditor安装遇到了问题:Preparing metadata (pyproject.toml) did not run successfully._第3张图片

  4. 再执行pip3 install -e weditor,安装成功。

Weditor安装遇到了问题:Preparing metadata (pyproject.toml) did not run successfully._第4张图片

启动 执行命令:python -m weditor
Weditor安装遇到了问题:Preparing metadata (pyproject.toml) did not run successfully._第5张图片
展示的页面如下:
Weditor安装遇到了问题:Preparing metadata (pyproject.toml) did not run successfully._第6张图片

你可能感兴趣的:(自动化,python,android)