私はpython 2.7.6がプリインストールされたリモートのLinuxサーバで作業しています。私はをPython 2.7.12にアップグレードしたいと思います(いくつかのライブラリを2.730にインストールすることができません。sslエラー)。PythonとPipが同期していない
ソースからダウンロードしてコンパイルし、2.7.12をインストールしました。python2.7
が2.7.12を開きます。しかし、私はpipを使用している間、まだ更新pythonバージョンの警告を取得します。 pipが2.7.12と同期していないようで、2.7.6のサービスを提供し続けています。システム内にpipの他のインストールを見つけることができません。
pip/pip2/pip2.7が正しく動作しているpython2.7.xの作業バージョンが必要です。
/usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/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.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/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.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
そのマシンにはopenSSLがありますか?ほとんどの場合、pythonはこの警告を出しますが、パッケージをインストールします。あなたのシステムに物事をインストールすることはできますか? – ar7
いいえ、そうではありません。私は 'sklearn'をインストールしようとしましたが、それは多くの例外を投げました、そして、今それはインストールされていることを示します。しかし、Sklearnは壊れていて動作していません。 – Shivendra
urllib3、pyOpenSSL、openSSLをインストールしてからパッケージを再度インストールできますか? – ar7