前提・実現したいこと
Python2で、pipを用いてpandasその他パッケージをインストールしたいです。
発生している問題
次のようなエラーが発生します。
C:\Users\fukuda>pip install pandas
Collecting pandas
c:\python27\lib\site-packages\pip_vendor\requests\packages\urllib3\util\ssl_.py
:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Na
me Indication) extension to TLS is not available on this platform. This may caus
e 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#snimissi
ngwarning.
SNIMissingWarning
c:\python27\lib\site-packages\pip_vendor\requests\packages\urllib3\util\ssl_.py
:122: InsecurePlatformWarning: A true SSLContext object is not available. This p
revents urllib3 from configuring SSL appropriately and may cause certain SSL con
nections to fail. You can upgrade to a newer version of Python to solve this. Fo
r more information, see https://urllib3.readthedocs.io/en/latest/security.html#i
nsecureplatformwarning.
InsecurePlatformWarning
Could not fetch URL https://pypi.python.org/simple/pandas/: There was a proble
m confirming the ssl certificate: [Errno 1] ssl.c:504: error:1407742E:SSL routi
nes:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version - skipping
Could not find a version that satisfies the requirement pandas (from versions:
)
No matching distribution found for pandas
c:\python27\lib\site-packages\pip_vendor\requests\packages\urllib3\util\ssl.py
:122: InsecurePlatformWarning: A true SSLContext object is not available. This p
revents urllib3 from configuring SSL appropriately and may cause certain SSL con
nections to fail. You can upgrade to a newer version of Python to solve this. Fo
r more information, see https://urllib3.readthedocs.io/en/latest/security.html#i
nsecureplatformwarning.
InsecurePlatformWarning
ひとまず警告は置いておくとして,
Could not fetch URL https://pypi.python.org/simple/pandas/: There was a proble
m confirming the ssl certificate: [Errno 1] _ssl.c:504: error:1407742E:SSL routi
nes:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version - skipping
Could not find a version that satisfies the requirement pandas (from versions:
)
No matching distribution found for pandas
このあたりかなとは思うのですが...
試したこと
pipのバージョンも問題となりうるとのことだったのでupgradeすると,次のようなものが出ます.
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem con
firming the ssl certificate: [Errno 1] _ssl.c:504: error:1407742E:SSL routines:S
SL23_GET_SERVER_HELLO:tlsv1 alert protocol version - skipping
Requirement already up-to-date: pip in c:\python27\lib\site-packages
また,pandasに限らず他のパッケージも全部入らないみたいです.
パッケージ名ではなくアドレス?(.whlで終わるwheelファイルのやつ)を直接参照しても駄目でした.
ネットワークの類かとは思うのですが,調べてもさっぱりわかりません...
#補足情報
実行環境
windows7(32bit)
python2.7.15
pip 9.0.0
powershellで実行しています.
個人所有PCではないため,pythonの再インストールとかはできません.
どうかよろしくお願いします.
回答1件
あなたの回答
tips
プレビュー