ci 找不到python

$ python -V
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.
At C:\WINDOWS\TEMP\build_script377697220\script.ps1:195 char:1

  • python -V
  •   + CategoryInfo          : ObjectNotFound: (python:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    
    

在gitlab_runner 的 config.toml 里面加

environment = [‘PATH=%PATH%;C:\Windows\System32;C:/Program Files/Git/bin;C:\Python27;D:\Python27;C:\Python27\Scripts;D:\Python27\Scripts’]

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐