[note] 想使用 pip 從 GitHub 儲存庫安裝最新版本

註記:此頁為由 AI(gpt-5-mini-2025-08-07)自動翻譯自英文原文,可能含有少量不準確之處。

📌 簡介

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.

🚀 快速開始

若要使用 pip 從 GitHub 安裝開發版本,請執行以下指令:

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

🔁 重點回顧

  • 你可以使用 pip 從 GitHub 安裝特定分支。
  • ‘devel’ 分支通常包含不穩定的開發版本。
  • 要安裝,請使用指令格式:pip install git+{repo_url}@{branch_name}
  • {repo_url} 替換為你的儲存庫 URL,並將 {branch_name} 替換為 ‘devel’。
  • 請確認系統已安裝 pip 才能使用此指令。
作者

Hsiang-Jen Li & ChatGPT-4o Mini

發表於

2024-12-18

更新於

2025-02-28

許可協議