0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

JupyterLabのインストールメモ

Last updated at Posted at 2024-08-13

環境

  • macOS Ventura 13.6.8

Pyhonとpipのバージョンは以下の通り

$ python3 --version
Python 3.9.6
$ python3 -m pip --version
pip 24.2 from /Users/maruyamahikaru/Library/Python/3.9/lib/python/site-packages/pip (python 3.9)

インストール

初心者なのでまずはvenvを使わない方法で。Homebrew経由でインストールする。

$ brew install jupyterlab

起動

$ jupyter lab
[I 2024-08-13 16:48:43.018 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2024-08-13 16:48:43.023 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2024-08-13 16:48:43.034 ServerApp] jupyterlab | extension was successfully linked.
(...省略...)

ブラウザ上にJupyterLabの画面が表示されたら成功。
Screenshot 2024-08-13 at 16.59.25.png

トラブル

pipでインストールしようとすると、PEP668の制限によってブロックされる!

$ python3 -m pip install jupyterlab
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
    xyz, where xyz is the package you are trying to
    install.
(...省略...)

これは、venvを使えば回避可能。venvの使い方は以下の記事がわかりやすかった。

他の方法

pipxを使ってインストールするのも良いかもしれない。

参考

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?