本内容は自身のメモを目的としているため解釈や実行内容に不備がある場合があります。
「東京大学のデータサイエンティスト育成講座」のA-1-4の部分に該当します。
Anaconda3インストール後、下記コマンドを叩く
pip install pandas-datareader
pip install Plotly
エラー内容
C:\WINDOWS\system32>pip install pandas-datareader
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting pandas-datareader
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pandas-datareader/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pandas-datareader/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pandas-datareader/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pandas-datareader/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pandas-datareader/
Could not fetch URL https://pypi.org/simple/pandas-datareader/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pandas-datareader/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement pandas-datareader (from versions: none)
ERROR: No matching distribution found for pandas-datareader
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
C:\WINDOWS\system32>pip install Plotly
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting Plotly
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/plotly/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/plotly/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/plotly/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/plotly/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/plotly/
Could not fetch URL https://pypi.org/simple/plotly/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/plotly/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement Plotly (from versions: none)
ERROR: No matching distribution found for Plotly
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
dllを置き換える
①Anaconda3のインストールフォルダにあるlibssl-1_1-x64.dllをコピーする。
②C:\Program Files\Intel\Intel(R) Management Engine Components\iCLSにペーストする。
※既存のバックアップはお任せします。
再度、コマンドを叩いて確認してみる
pip install pandas-datareader
pip install Plotly
実行結果
C:\WINDOWS\system32>pip install pandas-datareader
Requirement already satisfied: pandas-datareader in c:\files\anaconda3\lib\site-packages (0.7.4)
Requirement already satisfied: lxml in c:\files\anaconda3\lib\site-packages (from pandas-datareader) (4.3.4)
Requirement already satisfied: wrapt in c:\users\user\appdata\roaming\python\python37\site-packages (from pandas-datareader) (1.10.11)
Requirement already satisfied: requests>=2.3.0 in c:\files\anaconda3\lib\site-packages (from pandas-datareader) (2.22.0)
Requirement already satisfied: pandas>=0.19.2 in c:\files\anaconda3\lib\site-packages (from pandas-datareader) (0.24.2)
Requirement already satisfied: certifi>=2017.4.17 in c:\files\anaconda3\lib\site-packages (from requests>=2.3.0->pandas-datareader) (2019.6.16)
Requirement already satisfied: idna<2.9,>=2.5 in c:\files\anaconda3\lib\site-packages (from requests>=2.3.0->pandas-datareader) (2.8)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\files\anaconda3\lib\site-packages (from requests>=2.3.0->pandas-datareader) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\files\anaconda3\lib\site-packages (from requests>=2.3.0->pandas-datareader) (1.24.2)
Requirement already satisfied: numpy>=1.12.0 in c:\files\anaconda3\lib\site-packages (from pandas>=0.19.2->pandas-datareader) (1.16.4)
Requirement already satisfied: pytz>=2011k in c:\files\anaconda3\lib\site-packages (from pandas>=0.19.2->pandas-datareader) (2019.1)
Requirement already satisfied: python-dateutil>=2.5.0 in c:\files\anaconda3\lib\site-packages (from pandas>=0.19.2->pandas-datareader) (2.8.0)
Requirement already satisfied: six>=1.5 in c:\users\user\appdata\roaming\python\python37\site-packages (from python-dateutil>=2.5.0->pandas>=0.19.2->pandas-datareader) (1.12.0)
C:\WINDOWS\system32>pip install Plotly
Requirement already satisfied: Plotly in c:\files\anaconda3\lib\site-packages (4.1.1)
Requirement already satisfied: six in c:\users\user\appdata\roaming\python\python37\site-packages (from Plotly) (1.12.0)
Requirement already satisfied: retrying>=1.3.3 in c:\files\anaconda3\lib\site-packages (from Plotly) (1.3.3)
バージョンを確認してみる。
※pip listでインストールされたパッケージバージョン一覧を出力できますが下記詳細出力で実行してみました。
C:\WINDOWS\system32>pip show pandas-datareader
Name: pandas-datareader
Version: 0.7.4
Summary: Data readers extracted from the pandas codebase,should be compatible with recent pandas versions
Home-page: https://github.com/pydata/pandas-datareader
Author: The PyData Development Team
Author-email: pydata@googlegroups.com
License: BSD License
Location: C:\files\anaconda3\lib\site-packages
Requires: lxml, pandas, wrapt, requests
Required-by:
C:\WINDOWS\system32>pip show Plotly
Name: plotly
Version: 4.1.1
Summary: An open-source, interactive graphing library for Python
Home-page: https://plot.ly/python/
Author: Chris P
Author-email: chris@plot.ly
License: MIT
Location: C:\files\anaconda3\lib\site-packages
Requires: six, retrying
Required-by:
以上、お疲れさまでした。