需求
- 使用pip 從 git倉庫而不是pypi源安裝python包
- 不是從master分支拉取而是其他分支(例子 test分支)
- setup.py 不在根目錄下面
例子
github地址: https://github.com/Me1onRind/pip_demo test分支
+ pip_demo
| + foo
| + bar
| - demo.py
| - setup.py
pip install git+ssh://[email protected]/Me1onRind/pip_demo.git@test#"egg=bar&subdirectory=foo"
ssh協議的情況下 域名和倉庫路徑之間的分割符合是 : 需要替換為 / 否則會報 ssh: Could not resolve hostname 的錯誤
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/141161.html
標籤:Python
下一篇:pyinstaller==3.6版本打包出程式執行提示 failed to execute pyi_rth_pkgres 解決辦法
