J'utilise Amazon Linux. Je n'ai pas sudo et je veux installer un paquet dans mon répertoire personnel. Donc j'essaye le ci-dessous, mais obtenant l'erreur, "aucune distribution correspondante trouvée pour awscii".Si j'essaie d'installer le package dans mon répertoire de départ, cela génère une erreur.
[[email protected] ~]$ pip install --user awscii
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
Collecting awscii
/home/myuser/.local/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: 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 incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/myuser/.local/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Could not find a version that satisfies the requirement awscii (from versions:)
No matching distribution found for awscii
[[email protected] ~]$
Quelle est la bonne façon d'installer un paquet python dans mon répertoire personnel?
Je pense que vous avez faute de frappe, il devrait être 'awscli' – mtkilic
vous suggérons également 'virtualenv' pour installer une version plus récente de Python. –
@ kiran.koduru, je n'ai pas d'accès sudo à ma machine, comment installer virtualenv? – Dave