question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AZ CLI failing with Pip error on extension install.

See original GitHub issue

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

Describe the bug

Az CLI version 2.18 fails with Pip error on extension install. (e.g. az extension add --source <path to .whl>)

cli.azure.cli.core.azclierror: An error occurred. Pip failed with status code 1. Use --debug for more information.

To Reproduce

az extension add --source <path to .whl> Expected behavior

No failure Environment summary

Az CLI Version: 2.18 MacOS, Zsh Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
czofficialcommented, Mar 8, 2021

Is there any workaround for this issue?

Unfortunately, I get the same error message when trying out chjinche’s solution: cd: no such file or directory: /opt/az/bin/ zsh: no such file or directory: ./python3

Found the issue. I screened my debug log again and found the reference that my pip version was too old: /usr/local/Cellar/azure-cli/2.20.0/libexec/bin/python -m pip install --upgrade pip helped in my case.

1reaction
chjinchecommented, Feb 22, 2021

What’s the workaround for this issue?

@mayurigupta13 one way to workaround is upgrading pip version before az extension add, like this:

cd /opt/az/bin/
./python3 -m pip install --upgrade pip --user
Read more comments on GitHub >

github_iconTop Results From Across the Web

pip error while installing azure cli extension behind proxy
Pip failed with status code 1. looking into fiddler it says: 407 proxy authentication error while connecting to on premise nexus. My pip...
Read more >
Azure CLI ADO Extension installation - Visual Studio Feedback
Unfortunately when I tried to install the ADO extension, I block on the following error: An error occurred. Pip failed with status code...
Read more >
What to do if Linux "pwsh" az extension add --name azure-iot ...
CLIError : An error occurred. Pip failed with status code 1. Use --debug for more information. cli.azure.cli.core.azclierror: An error occurred.
Read more >
What is the pip error status code 1 in Azure CLI ... - Quora
The error usually occurs due to unspecified program code request access for memory without proper authority. Generally, this is seen on the website's ......
Read more >
Why I Am Getting Error While Installing Azure-Cli Using Pip
Az CLI version 2.18 fails with Pip error on extension install. e.g. az extension add source <path to.whl>. cli.azure.cli.core.azclierror: An error occurred.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found