検索
連載

[解決!Python]pipでGitHubからパッケージをインストールするには解決!Python

pipはPyPIからだけではなく、GitHubで公開されているパッケージのリポジトリから直接インストールすることもできる。その方法を紹介する。

PC用表示 関連情報
Share
Tweet
LINE
Hatena
「解決!Python」のインデックス

連載目次

コマンドライン 説明
pip install pkg_name@git+https://github.com/acc_name/repo_name.git リポジトリ名とパッケージ名が異なる場合は「パッケージ名@」を「git+https://…….git」の前に付加
pip install git+https://github.com/acc_name/pkg_name.git リポジトリ名とパッケージ名が同じならこう書ける
pip install git+https://github.com/acc_name/pkg_name.git@v1.0 「@v1.0」のように末尾にバージョンやタグを付加できる
pipでGitHubからパッケージをインストールする構文

Copyright© Digital Advantage Corp. All Rights Reserved.

ページトップに戻る