You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 22.04下pip无法更新TBB:distutils安装项目问题求助

问题:DAAL依赖的TBB版本冲突,无法卸载旧版本TBB

环境

  • Ubuntu 22.04
  • Python 3.9

问题背景

已完成所有PyPi包的全面更新,解决了其他依赖问题,仅剩DAAL的TBB版本冲突:DAAL要求tbb==2021.*,但当前安装的是TBB 0.2。强制安装DAAL后,怀疑部分功能可能受TBB依赖影响,尝试正常安装DAAL或更新TBB时触发如下错误。

错误信息

Collecting tbb==2021.* (from daal)
  Obtaining dependency information for tbb==2021.* from https://files.pythonhosted.org/packages/79/a8/01ac205ff1f68f543aa73d69d6947218cd0973992a4b60cf0a4bfe507561/tbb-2021.10.0-py2.py3-none-manylinux1_x86_64.whl.metadata
  Using cached tbb-2021.10.0-py2.py3-none-manylinux1_x86_64.whl.metadata (1.0 kB)
Using cached tbb-2021.10.0-py2.py3-none-manylinux1_x86_64.whl (4.4 MB)
Installing collected packages: tbb
  Attempting uninstall: tbb
    Found existing installation: TBB 0.2
ERROR: Cannot uninstall 'TBB'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

已尝试的解决方法

  • 卸载系统原生libtbb-dev后重装兼容版本:
    sudo apt install libtbb-dev
    
    安装成功,但pip的错误提示未改变。
  • 尝试使用easy_install,但pip安装后无法在Python中导入,且Ubuntu无法识别该命令。

疑问与求助

TBB 0.2版本在PyPi历史中找不到,求解决TBB版本冲突的可行方法。

内容的提问来源于stack exchange,提问作者schmiggle

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.13 09:23:18