当两个或多个包依赖于另一个公共库时,如何处理包版本要求?

问题描述 投票:0回答:1

我目前正在从事图像检测项目。我正在使用 bbox python 库进行检测。

在代码执行期间我得到了错误:

**"ERROR: numba 0.55.1 has requirement numpy<1.22,>=1.18, but you'll have numpy 1.22.2 which is incompatible."**

我试过:

"pip3 install numpy==1.21"
它适用于 numba 包,但后面的代码会出错。

因为,我的其他包正在使用

numpy=1.22.2
版本并且低于
1.22.0
会产生其他包依赖项的错误。

那么,如何处理呢?

感谢您的宝贵时间。提前打赏

python numpy pip python-packaging
1个回答
0
投票
pip install numpy==1.23.5

这对我有用,试试这个

© www.soinside.com 2019 - 2024. All rights reserved.