pip:强制安装忽略依赖项 [英] pip: force install ignoring dependencies
本文介绍了pip:强制安装忽略依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法强制安装一个pip python包而忽略所有不能满足的依赖?
Is there any way to force install a pip python package ignoring all it's dependencies that cannot be satisfied?
(我不在乎这样做有多错误",我只需要这样做,抛开任何逻辑和推理......)
(I don't care how "wrong" it is to do so, I just need to do it, any logic and reasoning aside...)
推荐答案
pip 有一个 --no-dependencies
开关.你应该使用它.
pip has a --no-dependencies
switch. You should use that.
有关更多信息,请运行 pip install -h
,您将在其中看到以下行:
For more information, run pip install -h
, where you'll see this line:
--no-deps, --no-dependencies
Ignore package dependencies
这篇关于pip:强制安装忽略依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文