我正在尝试学习如何使用Gitlab CI / CD。使用他们的python yml模板时,我能够使其运行。它失败并显示以下消息:
Program 'python.exe' failed to run: The file cannot be accessed by the systemAt
C:\WINDOWS\TEMP\build_script221156442\script.ps1:159 char:1
+ python -V
+ ~~~~~~~~~.
At C:\WINDOWS\TEMP\build_script221156442\script.ps1:159 char:1
+ python -V
+ ~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
我需要做什么,以使其能够识别python,因此我可以运行一个简单的命令,例如:
python -m unittest discover -s tests