Abh*_*air 5 python django pip python-3.x amazon-elastic-beanstalk
我有一个 requirements.txt 文件,其中有一些 git+ 引用。由于某种原因,我想总是重新安装这些,即使我进行了更改并修改了版本并将其推送到我的 github 存储库,pip 说要求已经满足并且没有安装。
这是我的requirements.txt文件的一部分:-
Django==1.10
git+https://github.com/myaccount/myrepo.git@master#egg=some_egg
Run Code Online (Sandbox Code Playgroud)
我不想重新安装 requirements.txt 文件中的所有内容。只有 git+ 要求。
我试过这个:-
git+https://github.com/myaccount/myrepo.git@master#egg=some_egg --install-option="--upgrade --ignore-installed --force-reinstall"
Run Code Online (Sandbox Code Playgroud)
但上述选项均无效。
小智 -1
我用这个:
pip install -r requirements.txt
Run Code Online (Sandbox Code Playgroud)
你可以使用类似的东西:
pip install -r requirements.txt --no-index --find-links
Run Code Online (Sandbox Code Playgroud)
--no-index- 忽略包索引(仅查看 --find-links URL)。
-f, --find-links <URL>- 如果是 html 文件的 URL 或路径,则解析指向档案的链接
| 归档时间: |
|
| 查看次数: |
3495 次 |
| 最近记录: |