安装httprunner后,脚手架创建项目报错。
命令行执行:hrp startproject demo1报错如下:
7:01PM INF ensure python3 venv packages=["funppy==v0.5.0","httprunner==v4.3.5"] python3="C:\Users\Administrator\.hrp\venv\Scripts\python.exe"
7:01PM INF exec command cmd="C:\Windows\system32\cmd.exe"
pip 23.2.1 from C:\Users\Administrator.hrp\venv\Lib\site-packages\pip (python 3.12)
7:01PM INF installing python package pkgName=funppy pkgVersion=v0.5.0
7:01PM INF exec command cmd=cmd.exe
7:01PM ERR exec command failed error="exec: \"cmd.exe\": executable file not found in %PATH%"
7:01PM ERR create scaffold project failed error="pip install funppy==v0.5.0 failed: pip install package failed: exec: \"cmd.exe\": executable file not found in %PATH%: prepare python3 venv failed"
Error: pip install funppy==v0.5.0 failed: pip install package failed: exec: "cmd.exe": executable file not found in %PATH%: prepare python3 venv failed
7:01PM WRN hrp exit code=9
hrp version v4.3.5
卸载重装了httprunner还是不行。