翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。
botocore
のインストール
Amazon EFS クライアントは botocore
を使用して、その他の AWS サービスで交流します。これは、 CloudWatch Logs で Amazon EFS ファイルシステムのマウント試行の成功または失敗をモニタリングする場合に必要です。詳細については、「マウント試行の成功または失敗のステータスをモニタリングする」を参照してください。このセクションでは、botocore
Amazon EC2 インスタンスでのインストールおよびアップグレードについて説明します。
次のコマンドを実行して
wget
をインストールします。sudo yum -y install wget
次のスクリプトを使用して、
pip
パッケージマネージャーの適切なバージョンをインストールします。if [[ "$(python3 -V 2>&1)" =~ ^(Python 3.6.*) ]]; then sudo wget https://bootstrap.pypa.io/pip/3.6/get-pip.py -O /tmp/get-pip.py elif [[ "$(python3 -V 2>&1)" =~ ^(Python 3.5.*) ]]; then sudo wget https://bootstrap.pypa.io/pip/3.5/get-pip.py -O /tmp/get-pip.py elif [[ "$(python3 -V 2>&1)" =~ ^(Python 3.4.*) ]]; then sudo wget https://bootstrap.pypa.io/pip/3.4/get-pip.py -O /tmp/get-pip.py else sudo wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py fi
次のコマンドを実行して
botocore
をインストールします。sudo python3 /tmp/get-pip.py sudo pip3 install botocore
または
sudo /usr/local/bin/pip3 install botocore
次のコマンドを実行して
wget
をインストールします。sudo apt-get update sudo apt-get -y install wget
次のスクリプトを使用して、
pip
パッケージマネージャーの適切なバージョンをインストールします。if echo $(python3 -V 2>&1) | grep -e "Python 3.6"; then sudo wget https://bootstrap.pypa.io/pip/3.6/get-pip.py -O /tmp/get-pip.py elif echo $(python3 -V 2>&1) | grep -e "Python 3.5"; then sudo wget https://bootstrap.pypa.io/pip/3.5/get-pip.py -O /tmp/get-pip.py elif echo $(python3 -V 2>&1) | grep -e "Python 3.4"; then sudo wget https://bootstrap.pypa.io/pip/3.4/get-pip.py -O /tmp/get-pip.py else sudo apt-get -y install python3-distutils sudo wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py fi
次のコマンドを実行して
botocore
をインストールします。sudo python3 /tmp/get-pip.py sudo pip3 install botocore
または
sudo /usr/local/bin/pip3 install botocore
Debian10 または Ubuntu20 に
botocore
をインストールする場合は、以下のコマンドを使用して指定したターゲットフォルダ内にあるbotocore
をインストールします。-
Debian10 の場合:
sudo python3 /tmp/get-pip.py sudo pip3 install --target /usr/lib/python3/dist-packages botocore
Ubuntu20の場合:
sudo /usr/local/bin/pip3 install --target /usr/lib/python3/dist-packages botocore
-
次のコマンドを実行して Mac インスタンスに
botocore
をインストールします。sudo pip3 install botocore
botocore
のアップグレード
botocore の最新互換バージョンにアップグレードするには、--upgrade
オプションを使用してください。例:
sudo pip3 install botocore --upgrade