Install Troubleshooting ======================= Before posting an issue, please review our list of [common issues](https://github.com/Azure/azure-cli/issues?q=label%3AFAQ+is%3Aclosed). These are issues we have closed because we cannot address them within the CLI due to platform or language limitations. Upgrade from 0.1.0b10 causes 'KeyError: Azure' error ---------------------------------------------------- On Python 2, it's recommended to upgrade with the `--ignore-installed` flag: `pip install --upgrade --ignore-installed azure-cli`. Alternatively, use the interactive install script. See [#1540](https://github.com/Azure/azure-cli/issues/1540#issue-195125878) Error: 'Could not find a version that satisfies the requirement azure-cli' -------------------------------------------------------------------------- The error message from pip usually means a very old version of pip is installed. Run `pip --version` to confirm. [Latest pip version](https://pip.pypa.io/en/stable/news/) Upgrade `pip` with ``$ pip install --upgrade pip`` or install with the ``--pre`` flag. See [#1308](https://github.com/Azure/azure-cli/issues/1308#issuecomment-260413613) 'X509' object has no attribute '_x509' -------------------------------------- If you run into an ``AttributeError: 'X509' object has no attribute '_x509'`` error, downgrade your version of the requests library from 2.12.1 to 2.11.1. See [#1360](https://github.com/Azure/azure-cli/issues/1360) Windows - 'FileNotFoundError' error on install ---------------------------------------------- Verify that the file path quoted in the error has more than 260 characters. If so, the installation files exceed the 260 character limit for file paths on Windows. This can be resolved by installing the CLI in a higher directory to prevent reaching the Windows max filepath length. See [#1221](https://github.com/Azure/azure-cli/issues/1221#issuecomment-258290204) Ubuntu 12.04 LTS - Known warning -------------------------------- You may see the following warning message during install and execution of `az`. ``` /usr/local/az/envs/default/local/lib/python2.7/site-packages/pip/pep425tags.py:30: RuntimeWarning: invalid Python installation: unable to open /usr/az/envs/default/lib/python2.7/config/Makefile (No such file or directory) warnings.warn("{0}".format(e), RuntimeWarning) ``` See [#348](https://github.com/Azure/azure-cli/issues/348) See also [pypa/pip#1074](https://github.com/pypa/pip/issues/1074) Errors with curl redirection ---------------------------- If you get an error with the curl command regarding the `-L` parameter or an error saying `Object Moved`, try using the full url instead of the aka.ms url: ```shell # If you see this: $ curl -L https://aka.ms/InstallAzureCli | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 175 100 175 0 0 562 0 --:--:-- --:--:-- --:--:-- 560 bash: line 1: syntax error near unexpected token `<' 'ash: line 1: `