gitlab-Runner 中 ci/cd 报Python的错误

报错内容

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

解决步骤:

  1. 如果是Python3.8的版本报错,下载一个Python3.7.0 的版本,配好环境变量。然后重启gitlab-Runner 问题解决
  2. 或者 用py 运行Python脚本

版权声明:本文为wzxxdghdf原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。