0

Ich benutze Amazon Linux. Ich habe kein sudo und möchte ein Paket in meinem Home Directorie installieren. Also versuche ich das unten, bekomme aber den Fehler "Keine passende Distribution für AWSCII gefunden".Der Versuch, das Paket zu meinem Home Directorie zu installieren, führt zu einem Fehler

[[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] ~]$ 

Was ist der richtige Weg, um ein Python-Paket in meinem Home-Verzeichnis zu installieren?

+1

Ich denke, installieren möchten Sie Tippfehler, sollte es sein 'awscli' – mtkilic

+0

auch vorschlagen, dass Sie verwenden 'virtualenv', um eine neuere Version von Python zu installieren. –

+0

@ kiran.koduru, ich habe keinen sudo Zugriff auf meine Maschine, wie würde ich virtualenv installieren? – Dave

Antwort

1

Der Standard ec2-user hat sudo-Berechtigungen so sollten Sie Ihre Python-Version

$ sudo yum update 

Ich denke, das nur noch Sie python27 Upgrade der Lage sein, aktualisieren sollte.

Falls nicht, wenn Sie Python 27

$ sudo yum install python27 

installiert werden soll Wenn Sie Python 3

$ sudo yum install python34 
Verwandte Themen