[note] Want to install the latest version from a GitHub repo using pip

๐Ÿ“Œ Introduction

This article explains how to install a specific branch of a GitHub repository using pip, particularly focusing on the โ€˜develโ€™ branch, which is typically used for development purposes rather than stable releases.

๐Ÿš€ Quick Start

To install the development version from GitHub using pip, execute the following command:

1
pip install git+https://github.com/username/repository.git@devel

๐Ÿ” Recap

  • You can install a specific branch from GitHub using pip.
  • The โ€˜develโ€™ branch typically contains unstable development versions.
  • To install, use the command format: pip install git+{repo_url}@{branch_name}.
  • Replace {repo_url} with your repository URL and {branch_name} with โ€˜develโ€™.
  • Ensure you have pip installed to use this command.

[note] Want to install the latest version from a GitHub repo using pip

https://hsiangjenli.github.io/blog/note_pip_github_branch/

Author

Hsiang-Jen Li & ChatGPT-4o Mini

Posted on

2024-12-18

Updated on

2025-02-28

Licensed under