前提
GitHubからcloneしたファイルのrequirements.txtをpipでインストールを行いたいです。しかし、pip installの段階でエラーが出てしまいます。
実現したいこと
pipで正常にインストールできるようにする
発生している問題・エラーメッセージ
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 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/requirements-txt/ 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/requirements-txt/ 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/requirements-txt/ 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/requirements-txt/ 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/requirements-txt/ Could not fetch URL https://pypi.org/simple/requirements-txt/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/requirements-txt/ (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 requirements.txt (from versions: none) HINT: You are attempting to install a package literally named "requirements.txt" (which cannot exist). Consider using the '-r' flag to install the packages listed in requirements.txt ERROR: No matching distribution found for requirements.txt 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 WARNING: There was an error checking the latest version of pip.
試したこと
①pipのアップグレード
以下のコマンドを実行しました
curl https://bootstrap.pypa.io/get-pip.py | python3
②install時にオプションを設定
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org requirements.txt
③pip.confの作成
仮想環境venvの直下に以下のファイルを作りました。
pip.conf
1[global] 2trusted-host = pypi.python.org 3 pypi.org 4 files.pythonhosted.org
こちらを参考にしました。
pipが動作しないエラーの解決
補足情報(FW/ツールのバージョンなど)
whichコマンドで仮想環境のbinの直下にpipは確認済みです。
有識者の方、ご教授いただけると幸いです。

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。