在共享windows gitlab runner(powershell)上使用Chocolate安装python
我正在尝试使用在windows上设置一个自动python构建。我可以使用Chocolate安装python,但是当我尝试使用python时,我得到了错误:在共享windows gitlab runner(powershell)上使用Chocolate安装python,python,windows,continuous-integration,gitlab,chocolatey,Python,Windows,Continuous Integration,Gitlab,Chocolatey,我正在尝试使用在windows上设置一个自动python构建。我可以使用Chocolate安装python,但是当我尝试使用python时,我得到了错误: python -m pip install numpy 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
python -m pip install numpy
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.
我已尝试按照建议使用refreshenv
命令,但它给出了结果
从注册表中刷新cmd.exe的环境变量。
这表明未加载powershell配置文件。通常,我会重新启动powershell窗口以重新加载配置文件,但我无法在CI管道中执行此操作
如何在当前powershell窗口中使用python