首页 > 技术文章 > 阿里日志命令行工具安装+brew安装

rslai 2020-05-12 22:24 原文

1、MAC安装brew,基本一路yes即可

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

2、Mac上使用pip3安装CLI,首选需要安装Python3或pypy3:

# Pypy3
> brew install pypy3
> pypy3 -m pip install aliyun-log-python-sdk aliyun-log-cli -U --no-cache

# Python3
> brew install python3
> pip/pip3 install -U aliyun-log-cli --no-cache

3、如果报错

OSError: [Errno 1] Operation not permitted

4、尝试使用如下命令安装

> pip/pip3 install -U aliyun-log-cli --user

5、因为安全策略等原因,某些云服务器可能无法访问Pypi服务器,可以尝试使用本地Pypi镜像,例如阿里云服务器可以尝试:

pip/pip3 install -U aliyun-log-cli --index http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

  

  

推荐阅读