[AWS] Résumé des contre-mesures d'erreur d'installation de l'interface de ligne de commande

Les références

contenu de l'erreur

$ pip install awscli

DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
The directory '/home/uorat/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/uorat/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied (use --upgrade to upgrade): awscli in /usr/lib/python2.6/site-packages
Requirement already satisfied (use --upgrade to upgrade): botocore==1.0.0b1 in /usr/lib/python2.6/site-packages (from awscli)
Requirement already satisfied (use --upgrade to upgrade): bcdoc<0.16.0,>=0.15.0 in /usr/lib/python2.6/site-packages (from awscli)
Requirement already satisfied (use --upgrade to upgrade): colorama<=0.3.3,>=0.2.5 in /usr/lib/python2.6/site-packages (from awscli)
Requirement already satisfied (use --upgrade to upgrade): docutils>=0.10 in /usr/lib/python2.6/site-packages (from awscli)
Requirement already satisfied (use --upgrade to upgrade): rsa<=3.1.4,>=3.1.2 in /usr/lib/python2.6/site-packages (from awscli)
Requirement already satisfied (use --upgrade to upgrade): argparse>=1.1 in /usr/lib/python2.6/site-packages (from awscli)
Requirement already satisfied (use --upgrade to upgrade): jmespath==0.7.1 in /usr/lib/python2.6/site-packages (from botocore==1.0.0b1->awscli)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil<3.0.0,>=2.1 in /usr/lib/python2.6/site-packages (from botocore==1.0.0b1->awscli)
Requirement already satisfied (use --upgrade to upgrade): ordereddict==1.1 in /usr/lib/python2.6/site-packages (from botocore==1.0.0b1->awscli)
Requirement already satisfied (use --upgrade to upgrade): simplejson==3.3.0 in /usr/lib64/python2.6/site-packages (from botocore==1.0.0b1->awscli)
Requirement already satisfied (use --upgrade to upgrade): six<2.0.0,>=1.8.0 in /usr/lib/python2.6/site-packages (from bcdoc<0.16.0,>=0.15.0->awscli)
Requirement already satisfied (use --upgrade to upgrade): pyasn1>=0.1.3 in /usr/lib/python2.6/site-packages (from rsa<=3.1.4,>=3.1.2->awscli)
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an in
correct TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more in
formation, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning

approche

◆ pyenv git clone

$ git clone https://github.com/pyenv/pyenv.git ~/.pyenv

◆ Ajouté à bash_profile

$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
$ source ~/.bash_profile

◆ spécification / installation de la version pyenv

$ pyenv install -l
$ pyenv install 2.7.11

◆ Changer de Python

$ pyenv version
$ pyenv global 2.7.11
$ python --version

installation aws-cli

$ pip install awscli

édition supplémentaire aws-cli ①

◆ Installation en masse de python-pip

$ yum -y install python-pip

◆ Confirmation de l'installation

$ pip -V
pip 9.0.3 from /usr/lib/python2.7/site-packages (python 2.7)

◆ installation aws-cli

$ pip install awscli

édition supplémentaire aws-cli ②

◆ Installer avec get-pip.py

$ curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
$ sudo python get-pip.py

◆ installation aws-cli

$ pip install awscli

Recommended Posts

[AWS] Résumé des contre-mesures d'erreur d'installation de l'interface de ligne de commande
Procédure d'installation de l'AWS CLI
[Contre-mesures d'erreur] Gestion des erreurs d'installation de django-heroku
Erreur d'installation de l'AWS CLI OS X EI Capitan (10.11.6) (python-dateutil)
Résumé de la procédure d'installation d'Oracle Database XE
Résumé de l'écriture d'AWS Lambda
Erreur d'installation de Jupyter
Installation d'Anaconda3
Erreur d'installation de centOS 7
Installation de CentOS 8
Installation de Python 3 et Flask [Résumé de la construction de l'environnement]
Résumé de l'étude de Python pour utiliser AWS Lambda
Résumé des méthodes de gestion des erreurs lors de l'installation de TensorFlow (2)
[Python] Erreur de type: résumé des causes et des solutions pour "Aucun type"
Résumé de Tensorflow / Keras
Installation d'OpenMDAO (version 1.7.1)
Introduction de ferenOS 1 (installation)
Installation de Python 3.3 rc1
Résumé des opérations sur les chaînes
Reconfirmation d'AWS EBS
Résumé des arguments Python
Installation de matplotlib (Python 3.3.2)
Résumé de la méthode d'essai
Installation de dlib, cv2
[AWS] [AmazonLinux] Analyse des erreurs d'espace disque insuffisant avec docker-compose