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

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

新規登録して質問してみよう
ただいま回答率
85.48%
Python 3.x

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

Q&A

解決済

1回答

1059閲覧

mglearnがインストールできません

akiramase

総合スコア9

Python 3.x

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

0グッド

0クリップ

投稿2018/07/03 08:20

前提・実現したいこと

O'REILLYのPythonではじめる機械学習 で使われているmglearn のインストールが
できません。
OS windows7
python 3.6.4

発生している問題・エラーメッセージ

jupyernotebook で
! pip install mglearn
とすると以下のエラーが出ます。Anaconda Promptでも同様です。

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x03BEFB10>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/mglearn/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x03BEF810>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/mglearn/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x03BEF870>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/mglearn/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x03BEF930>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/mglearn/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x03BEF910>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/mglearn/
Could not find a version that satisfies the requirement mglearn (from versions: )
No matching distribution found for mglearn
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

該当のソースコード

jupyernotebook で
! pip install mglearn
Anaconda Promptでも同様です。

試したこと

エラーにある,pipのバージョンをアップグレードしましたが
同じようなエラーになります。

githubで配布されている
https://github.com/amueller/mglearn
ので 
pip install git+https://github.com/amueller/mglearn
としてみましたらgit認識されませんでした。

補足情報(FW/ツールのバージョンなど)

ここにより詳細な情報を記載してください。

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

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

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

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

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

guest

回答1

0

ベストアンサー

Failed to establish a new connection: [Errno 11004] getaddrinfo failed

社内ネットワークかなにかですか?

投稿2018/07/03 10:50

mkgrei

総合スコア8560

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

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

akiramase

2018/07/03 13:47

有難うございます。その通りです。自宅で接続したところあっさりインストール できました。大変助かりました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問