我有一个包含一些git+引用的requirements.txt文件。出于某些原因,我希望总是重新安装这些程序,即使我做了更改并升级了版本并将其推送到我的github代码库,pip说已经满足了要求,但没有安装。
这是我的requirements.txt文件的一部分:
Django==1.10
git+https://github.com/myaccount/myrepo.git@master#egg=some_egg
我不想重新安装requirements.txt文件中的所有内容。只有git+要求。
我试过了:
git+https://github.com/myaccount/myrepo.git@master#egg=some_egg --install-option="--upgrade --ignore-installed --force-reinstall"
但上述选项都不起作用。
发布于 2019-10-01 20:08:23
可能的一种选择是在可编辑模式下安装软件包,例如
Django==1.10
-e git+https://github.com/myaccount/myrepo.git@master#egg=some_egg
https://stackoverflow.com/questions/50616566
复制相似问题