virtualenv中的pip3补丁包
Pip3 patch package in virtualenv
我有一个不幸的情况,我需要在我的 virtualenv 中修补一个包,因为版本冲突要求禁止升级一个包含错误的包。
从 .txt 文件安装需求时,有没有办法为 pip 提供补丁文件?
我找不到任何搜索“pip venv provide patches”等的东西。
我想解决方案是将它包装在 bash 脚本中,但我宁愿尽可能避免使用它。
Is there any way of providing patch files to pip when installing requirements from a .txt file?
不,没有。 pip install
不支持这个。
另一种选择是 point pip to a patched version of the package, e.g. at a git repo. The linked Google thread also suggests checking out Paver。
我有一个不幸的情况,我需要在我的 virtualenv 中修补一个包,因为版本冲突要求禁止升级一个包含错误的包。
从 .txt 文件安装需求时,有没有办法为 pip 提供补丁文件? 我找不到任何搜索“pip venv provide patches”等的东西。 我想解决方案是将它包装在 bash 脚本中,但我宁愿尽可能避免使用它。
Is there any way of providing patch files to pip when installing requirements from a .txt file?
不,没有。 pip install
不支持这个。
另一种选择是 point pip to a patched version of the package, e.g. at a git repo. The linked Google thread also suggests checking out Paver。