.msi install doesn't work with git-for-windows bash
See original GitHub issueDescription
Installing the .msi (0.2.9) and issuing the az
command in the bash shell that comes with https://git-for-windows.github.io gives the following error:
C:\Program Files\Python36\python.exe: No module named azure.cli.__main__; 'azure.cli' is a package and cannot be directly executed
Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: Installed using the .msi.
CLI Version: What version of the CLI and modules are installed? (Use az --version
)
Answer here:
azure-cli (2.0.6)
acr (2.0.4)
acs (2.0.6)
appservice (0.1.6)
batch (2.0.4)
cdn (0.0.2)
cloud (2.0.2)
cognitiveservices (0.1.2)
command-modules-nspkg (2.0.0)
component (2.0.4)
configure (2.0.6)
core (2.0.6)
cosmosdb (0.1.6)
dla (0.0.6)
dls (0.0.6)
feedback (2.0.2)
find (0.2.2)
interactive (0.3.2)
iot (0.1.5)
keyvault (2.0.4)
lab (0.0.4)
monitor (0.0.4)
network (2.0.6)
nspkg (3.0.0)
profile (2.0.4)
rdbms (0.0.1)
redis (0.2.3)
resource (2.0.6)
role (2.0.4)
sf (1.0.1)
sql (2.0.3)
storage (2.0.6)
vm (2.0.6)
OS Version: What OS and version are you using?
Answer here: Windows 10 Enterprise (1607)
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: Git Bash from https://git-for-windows.github.io
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How to execute MSI file on Github Actions (windows-latest ...
It worked for me! With those commands, I could execute the .msi file to install the software, then use it afterwards in my...
Read more >5 Ways to Install Git on Windows - James Sturtevant
There are many different ways to install and use Git on Windows ... basic tooling; shell integration (right click to open BASH Promp...
Read more >1.5 Getting Started - Installing Git
Installing on macOS. There are several ways to install Git on a Mac. The easiest is probably to install the Xcode Command Line...
Read more >Installing TortoiseGit
One prerequisite of TortoiseGit is that it requires an already installed (command line) Git client which provides a git.exe . Git for Windows...
Read more >Windows Package Manager 1.0 - Windows Command Line
Open your favorite command-line interface and execute winget install wingetcreate to install the Windows Package Manager Manifest Creator.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I really wish this issue would be reopened. There are tons of people who use Git Bash in favor of WSL. There are still various issues with WSL, while Git Bash works natively and works well.
The issue is fundamentally not recognizing the .cmd execution extension in windows. Just alias it out in the git bash shell wiht “alias az=‘az.cmd’”
It’s really annoying when we see very limited if any invested interest in understanding the actual problem. Many people including myself ran into this, so I figured I would solve it since I reverse engineered the problem for some other hacks.
Also, you really only need to pre-empt the login process using Windows Command Line or PowerShell.