発生したエラーについて
エラーの本文
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/pip/
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
Requirement already up-to-date: pip in /usr/local/lib/python3.6/site-packages (18.1)
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
環境
- Docker version 20.10.12, build e91ed57
- Dockerイメージ nvidia/cuda:11.3.1-cudnn8-devel
- Python3.6.13
エラーの発生手順
コンテナ内でPython3.6を利用する必要があり、下記リポジトリをclone
してREADMEの手順通りにインストールを実行。
./configure
make
make test
sudo make install
その後、pip install
を実行するとSSLに関するエラーが発生。
対処法
libssl-dev
をインストールする。
apt-get install libssl-dev
参考サイト