How can I install a specific git branch with pipenv? I know this command will install the bitcoinlib master branch
pipenv install -e git+https://github.com/1200wd/bitcoinlib.git#egg=bitcoinlib
But how can I install a branch that isn't master?
You need to simply use the @ symbol to specify branch and change the egg name to be a bit different if you're also using the master or some other branch. Follow this syntax
pipenv install -e git+<your/target/git/repository/url.git>@branch#egg=package_name
So in my example I needed to use the segwit-support branch
pipenv install -e git+https://github.com/1200wd/bitcoinlib.git@segwit-support#egg=bitcoinlib_segwitsupport
Which adds this line to my pipfile
bitcoinlib_segwit-support = {editable = true, ref = "segwit-support", git = "https://github.com/1200wd/bitcoinlib.git"}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With