[root@localhost ~]# amh amqcloud admin gs 3

[Linux] AMH 7.0
http://amh.sh

[amqcloud admin]

=============================================================
[Linux] AMH 7.0
http://amh.sh

[amqcloud-1.2 admin]

[OK] amqcloud-1.2 is already installed.
Traceback (most recent call last):
File "/usr/local/amqcloud-1.2/qccmd", line 3, in <module>

from qcloud_cos import CosConfig

File "/usr/local/amqcloud-1.2/qcloud_cos/__init__.py", line 1, in <module>

from .cos_client import CosS3Client

File "/usr/local/amqcloud-1.2/qcloud_cos/cos_client.py", line 3, in <module>

import requests

ImportError: No module named requests

缺少requests, 使用pip安装requests
pip install requests
Collecting requests
Using cached https://files.pythonhosted.org/packages/9d/ee/391076f5937f0a8cdf5e53b701ffc91753e87b07d66bae4a09aa671897bf/requests-2.28.2.tar.gz

Complete output from command python setup.py egg_info:

==========================
Unsupported Python version
==========================
This version of Requests requires at least Python 3.7, but
you're trying to install it on Python 2.7. To resolve this,
consider upgrading to a supported Python version.

If you can't upgrade your Python version, you'll need to
pin to an older version of Requests (<2.28).

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

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-yB1TFP/requests/
You are using pip version 8.1.2, however version 23.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

好吧,amh默认用的是python2.7 上古时代的了

查询到此前用的requests版本是2.6.0 (别的已安装的机器通过pip show requests查询版本)


pip install requests==2.6.0

完成