NickHilton
NickHilton

Reputation: 682

Specify version of package installed from name @ git url with pip

When installing a github package via pip from setup.py with the format

{name} @ git+https://{oauth}@github.com/{repo}/{package}@{release_tag}#egg={name}-{version}

Installing this way, pip can parse out the package name and URL but not the version. This means that it thinks the requirement is already satisfied by an older version already installed.

Installing via a URL in the command line works ok and it can parse out the required version

I also tried {name}=={version}@{url} but this way pip doesn't look in git and only in pypi

Upvotes: 1

Views: 950

Answers (1)

NickHilton
NickHilton

Reputation: 682

This isn't currently allowed in pip, explanation linked in this pip issue

https://github.com/pypa/pip/issues/8197

Upvotes: 1

Related Questions