ローカル環境にpython3.7を入れましたが、pip install ができません。
下記のようになってしまう状態です。
なお、yumでcurlやopensslのアップデートができず、自ユーザーだけで、
サーバーに影響を起こさずにインストールしなければならないこととします。
Dockerで、OSイメージから環境を構築しようと思いましたが、
インストール先がCentOS6.4であり、ローカル環境で入れる方法が分からず、
厳しそうに感じています。
pipを使えない原因と解消方法、
環境ごと構築する別の方法などございますでしょうか。
shell
1pip install --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org beautifulsoup4 2pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 3Collecting beautifulsoup4 4 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/beautifulsoup4/ 5 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/beautifulsoup4/ 6 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/beautifulsoup4/ 7 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/beautifulsoup4/ 8 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/beautifulsoup4/ 9 Could not fetch URL https://pypi.org/simple/beautifulsoup4/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/beautifulsoup4/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping 10 Could not find a version that satisfies the requirement beautifulsoup4 (from versions: ) 11No matching distribution found for beautifulsoup4 12pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 13Could 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
下記を実行しても、同じエラーになりました。
pip install --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org beautifulsoup4
回答1件
あなたの回答
tips
プレビュー