Command does not work
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 64
Description
### Describe the bug
I tried to install azure-devops extension usin AZ CLI, but got an error that "file not found".
- I tried to do that with Python outside of Azure CLI and succeeded.
- I tried to do that with embeded Azure CLI Python and got an error:
C:\Program Files\Microsoft SDKs\Azure\CLI2\Scripts>pip install azure-devops
Fatal error in launcher: Unable to create process using '"D:\a\_work\1\s\build_scripts\windows\artifacts\Python\python.exe" "C:\Program Files\Microsoft SDKs\Azure\CLI2\Scripts\pip.exe" install azure-devops': The system cannot find the file specified.
It seems that this is packaging error.
### Related command
C:\Program Files\Microsoft SDKs\Azure\CLI2\Scripts>pip install azure-devops
**Important**: this is INTERNAL AZ CLI command, not external Python.
### Errors
Fatal error in launcher: Unable to create process using '"D:\a\_work\1\s\build_scripts\windows\artifacts\Python\python.exe" "C:\Program Files\Microsoft SDKs\Azure\CLI2\Scripts\pip.exe" install azure-devops': The system cannot find the file specified.
### Issue script & Debug output
C:\Program Files\Microsoft SDKs\Azure\CLI2\Scripts>pip install azure-devops
Fatal error in launcher: Unable to create process using '"D:\a\_work\1\s\build_scripts\windows\artifacts\Python\python.exe" "C:\Program Files\Microsoft SDKs\Azure\CLI2\Scripts\pip.exe" install azure-devops': The system cannot find the file specified.
### Expected behavior
No error..
### Environment Summary
az version
{
"azure-cli": "2.76.0",
"azure-cli-core": "2.76.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {}
}
### Additional context
_No response_
Contributor guide
Research direction
Start by reproducing the Windows command `pip install azure-devops` from the embedded Azure CLI Scripts directory and inspect how the packaged pip launcher is created. Trace the hard-coded build-time Python path shown in the error; done means the internal command launches successfully and installs the extension dependency without a file-not-found error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100