- 报错内容
python : The term ‘python’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
报错原因:
Python 在ci环境下找不到,所以需要做的就是让系统找到你的Python
解决步骤:
- 如果是Python3.8的版本报错,下载一个Python3.7.0 的版本,配好环境变量。然后重启gitlab-Runner 问题解决
- 或者 用py 运行Python脚本