Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az still available after uninstall #9958

Closed
jongio opened this issue Jul 17, 2019 · 2 comments

Comments

@jongio
Copy link

commented Jul 17, 2019

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
A clear and concise description of what the bug is.

CLI wouldn't update to latest version 2.0.66 on Windows using the installer.

I uninstalled via CLI but it still worked in terminal.

I had to manually remove the following files:

image

Then it didn't work.

Then I reinstalled via the Windows installer and I got the latest version.

To Reproduce
Steps to reproduce the behavior.

Don't know. Got to a weird state that I'm not sure I can repro.

Expected behavior
A clear and concise description of what you expected to happen.

Latest version to be updated or completely uninstalled.

Environment summary
Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)

Windows installer.
Windows Terminal and CMD and PowerShell.

Additional context
Add any other context about the problem here.

@yugangw-msft

This comment has been minimized.

Copy link
Contributor

commented Jul 20, 2019

@jongio, based on the screen snapshot you provided, it appears at some point you installed the CLI using pip. CLI windows installer can only upgrade the one acquired through the installer and would not recognize the one through pip.
Specifically to pip, deleting the entry scripts of az.bar is not a complete uninstall as the bulk files would still be under c:\Python36\Lib\site-packages. And to be honest, Azure CLI hasn't really supported a clean uninstall through pip uninstall till the very recent release.

@jongio

This comment has been minimized.

Copy link
Author

commented Jul 23, 2019

Gotcha. Thanks. I must have forgot I did that. I ran pip uninstall azure-cli to clean things up.

@jongio jongio closed this Jul 23, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.