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.

Pip install --azure-cli fails on Ubuntu 14.04

See original GitHub issue

Steps to reproduce:

Create a new VM

az vm create -g ${project_id} -n ${vm_name} --admin-username deploy --image UbuntuLTS

SSH into the VM and run

deploy@habitat-dev:~$sudo apt-get install python-pip
deploy@habitat-dev:~$pip install --user azure-cli
deploy@habitat-dev:~$ pip install --user azure-cli
Downloading/unpacking azure-cli
  Downloading azure_cli-2.0.0-py2.py3-none-any.whl
Downloading/unpacking azure-cli-network (from azure-cli)
  Downloading azure_cli_network-2.0.0-py2.py3-none-any.whl (243kB): 243kB downloaded
Downloading/unpacking azure-cli-appservice (from azure-cli)
  Could not find a version that satisfies the requirement azure-cli-appservice (from azure-cli) (from versions: 0.1.1b1, 0.1.1b5, 0.1.1b2, 0.1.0b11, 0.1.1b4, 0.1.0b9, 0.1.1b5, 0.1.1b2, 0.1.0b10, 0.1.1b3, 0.1.0b9, 0.1.0b11, 0.1.1b1, 0.1.0b10, 0.1.1b3, 0.1.1b4)
Cleaning up...
No distributions matching the version for azure-cli-appservice (from azure-cli)
Storing debug log for failure in /home/deploy/.pip/pip.log

deploy@habitat-dev:~$ python --version
Python 2.7.6

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tjprescottcommented, Mar 3, 2017

Running with --pre failed for a different reason, but for @devigned here’s what did work (thanks to @derekbekoe):

After you install the pre-reqs, run: wget https://bootstrap.pypa.io/get-pip.py sudo python get-pip.py

This will install the latest version of PIP. If you do what Ubuntu suggest and do sudo apt-get install python-pip you will get an ancient version of pip that will not work. Then run: pip install --user --upgrade azure-cli (This is because Ubuntu has an old version of requests that will cause an error…)

export PATH=$PATH:~/.local/bin

THEN… az should work for you. 😄

0reactions
devignedcommented, Mar 7, 2017

Nah, we can close this. I mostly wanted to make sure there was an issue out here for this as it’s likely someone will come across this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

azure-cli - PyPI
A great cloud needs great tools; we're excited to introduce Azure CLI, our next generation multi-platform command line experience for Azure.
Read more >
Azure CLI 2.0 - GLIBC_2.17 not found - Ask Ubuntu
In this, I am trying to include the Azure CLI 2.0 via apt-get on my CI ... sudo apt-get install azure-cli - export...
Read more >
Install the Azure CLI on Linux - Microsoft Learn
Learn how to install and run the Azure CLI on Linux manually. You can install the Azure CLI on Linux computers with one...
Read more >
Azurdevops Extension error "Pip failed with status code 1 for ...
According to the error message, it seems that this problem is related to the package keyring~=17.1.1. You could try to upgrade the pip...
Read more >
Install Azure CLI on Windows 10 using Python pip
TL;DR If you want to cut to the chase, here's the complete list of commands: # Download the Python 3.6.4 installer with PowerShell...
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