The cloud windows teamcity agents runs the following custom code
SET PATH=C:"Program Files"\Git\bin;C:\Program Files (x86)\Python310-32;C:\Program Files (x86)\Python310-32\Scripts;C:\Program Files\nodejs;%env.PATH%
pip uninstall -y PyInstaller pip install -r dependencies.txt
#powershell -Command "(gc 'C:\Program Files\Python310\lib\site-packages\PyInstaller\building\build_main.py') -replace 'output.split', 'output.splitlines' | Out-File -encoding ASCII 'C:\Program Files\Python310\lib\site-packages\PyInstaller\building\build_main.py'" #more "C:\Program Files\Python310\lib\site-packages\PyInstaller\building\build_main.py"
pip list
cd buildScripts
npm install
I am trying to run a bash script that requires python 3.9 but the default python version on teamcity windows agent is 3.10
the issue is because its a cloud windows agent, I cant 'run as an administrator hence I cant replace the python version.
is there a way to replace it without logging in as administrator