Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在共享windows gitlab runner(powershell)上使用Chocolate安装python_Python_Windows_Continuous Integration_Gitlab_Chocolatey - Fatal编程技术网

在共享windows gitlab runner(powershell)上使用Chocolate安装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

我正在尝试使用在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 a path was included, verify that the path is correct and try again.
我已尝试按照建议使用
refreshenv
命令,但它给出了结果

从注册表中刷新cmd.exe的环境变量。
这表明未加载powershell配置文件。通常,我会重新启动powershell窗口以重新加载配置文件,但我无法在CI管道中执行此操作

如何在当前powershell窗口中使用python