pip installl-跳过特定依赖项

pip installl-跳过特定依赖项,pip,requirements.txt,Pip,Requirements.txt,pip如何在安装所有其他依赖项时只跳过一个依赖项。 使用--no-deps,-no-dependencies-on不会起作用,因为它会阻止all 依赖性 我需要跳过单个依赖项的原因是,此依赖项在我的环境下不兼容(我有一个个性化版本的此依赖项)可能使用或文件让pip知道使用您修改的依赖项版本。这两个文件具有不同的含义和它们可以处理的不同选项,因此根据您的具体需要,其中一个可能更适合您。如果可能的话,我建议使用constraints.txt文件 A. # requirements.txt TheDe

pip如何在安装所有其他依赖项时只跳过一个依赖项。 使用--no-deps,-no-dependencies-on不会起作用,因为它会阻止all 依赖性

我需要跳过单个依赖项的原因是,此依赖项在我的环境下不兼容(我有一个个性化版本的此依赖项)

可能使用或文件让pip知道使用您修改的依赖项版本。这两个文件具有不同的含义和它们可以处理的不同选项,因此根据您的具体需要,其中一个可能更适合您。如果可能的话,我建议使用
constraints.txt
文件

A.

# requirements.txt
TheDependency --find-links /path/to/dir/containing/modified-dependency
# constraints.txt
TheDependency @ /path/to/modified-dependency-1.2.3.whl
B.

# requirements.txt
TheDependency --find-links /path/to/dir/containing/modified-dependency
# constraints.txt
TheDependency @ /path/to/modified-dependency-1.2.3.whl