简体   繁体   English

Ubuntu 18,安装 azure-cli 2.0.81

[英]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.我正在尝试安装 azure cli 旧版本我得到了新鲜的 ubuntu 18 或 20 我都试过了。 [![enter image description here][1]][1] [![在此处输入图像描述][1]][1]

pip install azure-cli==2.0.81

Its not working.它不工作。 I tried multiple OS with 18,20 ubuntu.我用 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完成 output 命令 python setup.py egg_info: Traceback (last recent call last): File "", line 1, in File "/tmp/pip-build-UhSu0K/antlr4-python2-runtime/setup.py", line 13 description=f'ANTLR {v} 运行时 Python 2.7.12' ^ SyntaxError: 无效语法

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

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-UhSu0K/antlr4-python2-runtime/命令“python setup.py egg_info”失败,错误代码 1 在 /tmp/pip-build-UhSu0K/antlr4-python2-runtime/

Below solution Worked, I am using python 3.7.5 and it works.下面的解决方案有效,我正在使用 python 3.7.5 并且它有效。

python3 -m pip install "package" python3 -m pip 安装“包”

THank you,谢谢你,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM