LoginSignup
1
2

More than 1 year has passed since last update.

pip install 時のエラー(pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.)

Last updated at Posted at 2022-04-02

発生したエラーについて

エラーの本文

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

参考サイト

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2