0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Databricksにてノートブックスコープでpipによりライブラリをサイレントインストールする方法

Posted at

概要

Databricksにてノートブックスコープでpipによりライブラリをサイレントインストールするには、%pipマジックコマンド実行時に-qという引数を設定すればよいようです。

Databricksのドキュメントによると、%pipはpipコマンドと同等の旨の記載があります。

image.png
引用元:Notebook スコープの Python ライブラリ-Azure Databricks - Workspace | Microsoft Docs

pipのドキュメントによると、-q、あるいは、--quietの引数を設定することで、サイレントインストールが実施されます。
image.png
引用元:pip - pip documentation v21.1.2 (pypa.io)

-q、あるいは、--quietの引数をしない場合、下記のような表示となってしまうため、ノートブックが長くなってしまう欠点があります。
image.png

実行方法

1. 下記のコードを実行

%pip install pycaret -q

image.png

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?