Web接入Sonic平台之安装
问题及解决方案
1.安装python的airtest-bdd依赖时报错,显示无法编译psutil
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for psutil Failed to build psutil ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (psutil)
解决方案:按照提示重新安装Microsoft C++ Build Tools无法解决该问题,pip也无法成功安装psutil-6.0.0-cp37-abi3-win_amd64.whl文件,最终安装conda并通过命令行%windir%\system32\cmd.exe /k ""D:\ProgramData\anaconda3\Scripts\activate.bat"添加环境变量后,执行conda install psutil安装该依赖。再次安装airtest-bdd则会跳过psutil的build,能够安装成功。
pip install https://cs.101.com/v0.1/static/kanban/airtest_bdd/airtest_bdd-1.18.0-py3-none-any.whl -i https://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com