2017-05-12 20 views
0

私はAmazon Linuxを使用しています。私はsudoを持っていないし、私の家のディレクトリにパッケージをインストールしたい。ですから、私は以下を試していますが、「awsciiで一致するディストリビューションが見つかりません」というエラーが表示されます。ホームディレクトリにパッケージをインストールしようとするとエラーが発生する

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

私のホームディレクトリにpythonパッケージをインストールする適切な方法は何ですか?あなたはPythonのバージョン私はこれが唯一のも、python27にあなたをアップグレードするべきだと思います

$ sudo yum update 

をアップグレードすることができるはずですので

+1

をインストールしたい場合、私はあなたがタイプミスがあると思うない場合ならば、それは – mtkilic

+0

はまた、あなたが使用することをお勧めawscli' 'でなければなりません'virtualenv'はPythonの新しいバージョンをインストールします。 –

+0

@ kiran.koduru、私は自分のマシンにsudoアクセス権がありません。どうすればvirtualenvをインストールできますか? – Dave

答えて

1

デフォルトec2-userはsudo権限を持っています。

あなたのpythonをインストールしたい27

$ sudo yum install python27 

あなたのpython 3

$ sudo yum install python34 
関連する問題