JupyterLabでのpipの利用について
先日twitterで見かけたkakeami様の「マンガと学ぶデータビジュアライゼーション(https://kakeami.github.io/viz-madb/appendix/setup.html
)」で勉強をしようと思い初期設定をしていたのですが、設定段階でうまくいかないことがあり、質問いたしました。
上記ページ内のpreprocess.ipynbを実行したのですが、JupyterLabでijsonライブラリをインストールしようとした際、下記のエラーが発生しました。
発生している問題・エラーメッセージ
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fc9193c4460>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/ijson/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fc9193c4670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/ijson/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fc9193c4880>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/ijson/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fc9193c4af0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/ijson/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fc9193c4ca0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/ijson/ ERROR: Could not find a version that satisfies the requirement ijson (from versions: none) ERROR: No matching distribution found for ijson
該当のソースコード
python
1!pip install ijson
試したこと,気になっていること
エラーの内容がプロキシに関するもののようなのですが、Dockerに関する知識がほぼないため、「pip install ijson」と変えて入力することくらいしか試せていません。
「!pip list」で出力すると、確かにijonはありませんでした。
また、インストール済のnumpyで「!pip install numpy」をしたところ、
「Requirement already satisfied: numpy in /opt/conda/lib/python3.9/site-packages (1.21.5)」と表示されました。(当たり前かもしれませんが)
当方の環境が
・Windows 10
・Docker Toolbox
を使用しているのですが、Docker Toolboxでは「localhost:9998」でアクセスできず、「192.168.99.100:9998」でJupyterにアクセスしています。これが原因なのでしょうか?
また、jupyterLabを起動した際、いつも
Build Recommended
JupyterLab build is suggested:
jupyterlab-dash needs to be included in build
と出てきます。
一応やってみるのですが、
Build failed with 500. If you are experiencing the build failure after installing an extension (or trying to include previously installed extension after updating JupyterLab) please check the extension repository for new installation instructions as many extensions migrated to the prebuilt extensions system which no longer requires rebuilding JupyterLab (but uses a different installation procedure, typically involving a package manager such as 'pip' or 'conda'). If you specifically intended to install a source extension, please run 'jupyter lab build' on the server for full output.」
と表示されるのも原因がわかっておりません。
拙い質問で申し訳ございません。
どなたかアドバイスいただけますと幸いです。
回答1件
あなたの回答
tips
プレビュー