0
0

More than 1 year has passed since last update.

pip install でファイルを指定してパッケージをインストールする方法

Last updated at Posted at 2022-08-11

実現したいこと

pip install パッケージ名 ではなく、ファイルを指定してパッケージをインストールしたい。

結論

ローカルにあるファイルを指定する場合

pip install foo.tar.gz

URLを指定してインストールする場合

pip install https://github.com/package/foo.tar.gz

requirements.txtに書く場合はこんな感じ

-f https://github.com/package/foo.tar.gz

ドキュメント

バージョン情報

$ pip --version
pip 22.0.4
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