質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Beautiful Soup

Beautiful Soupは、Pythonのライブラリの一つ。スクレイピングに特化しています。HTMLデータの構文の解析を行うために、HTMLタグ/CSSのセレクタで抽出する部分を指定することが可能です。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Q&A

1回答

3174閲覧

BeautifuSoup4のインストールが出来ない

minami_456

総合スコア13

Beautiful Soup

Beautiful Soupは、Pythonのライブラリの一つ。スクレイピングに特化しています。HTMLデータの構文の解析を行うために、HTMLタグ/CSSのセレクタで抽出する部分を指定することが可能です。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

0グッド

0クリップ

投稿2019/08/30 08:35

編集2019/08/31 02:30

前提・実現したいこと

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
プロキシサーバを使用しておりません
自宅、会社両方で試しましたが同じエラーが発生しました。

追加情報

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

hayataka2049

2019/08/30 08:43

一行ではなく、出たエラーすべてを掲載してください。
hayataka2049

2019/08/30 08:53

エラーから判断するにpipのSSL関連の問題です。環境によって対処が変わる可能性があるので ・使っているOS ・python、pipのバージョンおよびインストールした方法 ・ネットワークのプロキシサーバの有無 を追記してください。 (検索で色々対処法が出てくるので勝手にやっていただいても構いませんが、自己解決したら質問を自己解決扱いで閉じてください)
meg_

2019/08/30 09:18

セキュリティっぽいですが、環境は自宅ですか? 会社ですか? ※他のモジュールは問題なくインストール出来ていますか?
guest

回答1

0

おそらく,この記事が同じ問題を扱っているので参考になると思います.

投稿2020/03/20 11:31

dark-eater-kei

総合スコア1248

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問