简体   繁体   中英

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.

我对真实项目的要求示例:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM