一、下载pip
安装pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
下载会失败多下载几次,也可以二进制安装
wget https://files.pythonhosted.org/packages/ae/e8/2340d46ecadb1692a1e455f13f75e596d4eab3d11a57446f08259dee8f02/pip-10.0.1.tar.gz
tar xf pip-10.0.1.tar.gz
cd pip-10.0.1/
python setup.py install
pip==10.0.1
然后在下载的文件夹中运行以下命令
python get-pip.py
安装完成查看版本
pip --version
下载安装coscmd
pip install coscmd
安装报错:

    Found existing installation: requests 2.6.0
ERROR: Cannot uninstall 'requests'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

解决:
pip install --ignore-installed requests
more /root/.cos.conf

 [common]
secret_id = AKIDFlfOxxxxkbl4Cxxxxx
secret_key = AKIDFlfOxxxxkbl4Cxxxxx 
bucket = cmongo-bj-backup-1237528757
region = ap-beijing
max_thread = 5
part_size = 1
schema = http

coscmd download -r cmongo_hotbackup/cmgo-na2rgdjh_0/1587512307 /dump/