Search code examples
pythonpipazure-cli

Ubuntu 18, Install azure-cli 2.0.81


I am trying to install azure cli old version I got fresh ubuntu 18 or 20 i tried both. [![enter image description here][1]][1]

pip install azure-cli==2.0.81

Its not working. I tried multiple OS with 18,20 ubuntu.

Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-UhSu0K/antlr4-python2-runtime/setup.py", line 13 description=f'ANTLR {v} runtime for Python 2.7.12' ^ SyntaxError: invalid syntax

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-UhSu0K/antlr4-python2-runtime/


Solution

  • Below solution Worked, I am using python 3.7.5 and it works.

    python3 -m pip install "package"

    THank you,