20
22

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 5 years have passed since last update.

PipenvでGitHubリポジトリをインストールする

Last updated at Posted at 2018-05-31

やりたいこと

GitHub上にあるPythonのライブラリをPipenvで使いたいときのやり方です。

やり方

以下のようにやったらうまく、Pipfile.lockの内容もロックされました。

pipenv install git+https://github.com/<ユーザー名>/<リポジトリ名>.git@<リビジョン>#egg=<パッケージ名>

@<リビジョン>はなくても、うまくできましたが、固定されたほうが再現性が高くていいと思うので指定しました。

具体例

以下は具体例です。nwtgck/map-classifier-pythonをPipenvでインストールするときの具体例です。

pipenv install git+https://github.com/nwtgck/map-classifier-python.git@v0.4.1#egg=map-classifier
20
22
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
20
22

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?