krzyhub February 2016

How to change dependency from name to github link?

I have a problem with installing things through pip. I have a requirements.txt file with a position from github like:

git+ssh://git@github.com/packages/my-package.git@master#egg=my-package-0.1.1

I run command pip install -r requirements.txt. Repository is cloning but there is a dependency that should be cloned also through github link, but internal search is trying to get in just by name and it reply that:
Could not find a version that satisfies the requirement...
No matching distribution found for needed-package <2.0.0,>=1.1.0 Is it possible to replace name of this package by github link? In my requirements.txt I have only one link: to main repository.

Answers


Maxim Panfilov February 2016

example from my requirements on real project:

git+ssh://git@github.com/PreppyLLC-opensource/django-allauth.git#egg=django-allauth

Post Status

Asked in February 2016
Viewed 2,928 times
Voted 6
Answered 1 times

Search




Leave an answer