前提・実現したいこと
python3でwebスクレイピングに挑戦しています。
BeautifuSoup4をインストールして開発環境を整えたいです。
発生している問題・エラーメッセージ
pip
1Collecting beautifulsoup4 2 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/ 3 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/ 4 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/ 5 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/ 6 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/ 7 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 8 Could not find a version that satisfies the requirement beautifulsoup4 (from versions: ) 9No matching distribution found for beautifulsoup4 10pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 11Could 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 beautifulsoup4 or $ pip install bs4
をターミナルにて入力しました。
どちらを入力しても同じ結果が出ます。
環境
OS macOS Mojave ver10.14.5
Python 3.7.2
pip Version: 19.0.2
プロキシサーバを使用しておりません
自宅、会社両方で試しましたが同じエラーが発生しました。
追加情報