python pip:强制安装忽略依赖项 [英] python pip: force install ignoring dependencies

查看:3474
本文介绍了python 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

这篇关于python pip:强制安装忽略依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆