Skip to content

docs(py): the pip install git+... command in the README cannot work - #489

Open
boleklebovski wants to merge 1 commit into
dydxprotocol:mainfrom
boleklebovski:docs/fix-python-git-install-url
Open

docs(py): the pip install git+... command in the README cannot work#489
boleklebovski wants to merge 1 commit into
dydxprotocol:mainfrom
boleklebovski:docs/fix-python-git-install-url

Conversation

@boleklebovski

Copy link
Copy Markdown

Problem

v4-client-py-v2/README.md documents installing from source twice — line 32 (Quick install) and line 54 (Installation) — with:

pip install git+https://github.com/dydxprotocol/v4-clients/blob/main/v4-client-py-v2

pip's git+ handler hands the URL straight to git clone. /blob/main/... is a GitHub web UI path that serves HTML, not a git repository, so the clone fails and the install never gets started. There is also no way to express "install from this subdirectory" with a /blob/ path.

Fix

Use the repository URL with pip's subdirectory fragment, which is the supported way to install a package that lives in a monorepo subfolder:

pip install git+https://github.com/dydxprotocol/v4-clients.git@main#subdirectory=v4-client-py-v2

Two lines, both occurrences.

Note on overlap

Open PR #488 also edits this file, but it adds lines at the top (hunk @@ -10,6 +10,8 @@) and does not touch either install command, so the two should not conflict.

pip clones the URL it is given; a /blob/ path is a GitHub web page, not a
repository, so the documented command always fails.

Signed-off-by: boleklebovski <160799963+boleklebovski@users.noreply.github.com>
@boleklebovski
boleklebovski requested review from a team as code owners August 10, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant