0

I ran a full update of all PyPi packages on my laptop (Ubuntu 22.04, Python 3.9), and I've resolved all dependency issues except one: Daal requires a different version of TBB than what I have. I forced an install of Daal just to have it, since I'm guessing some uses of it won't require TBB. However, when I try to install Daal without forcing, or try to update TBB, I get the following:

`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.`

I first attempted to solve this problem using the following Stack Overflow page: Link

I uninstalled the natively installed libtbb-dev, and reinstalled a version that would be compatible with my Daal package:

sudo apt install libtbb-dev

This installs libtbb-dev successfully:

The following additional packages will be installed:
  libtbb12 libtbbmalloc2
Suggested packages:
  libtbb-doc
The following NEW packages will be installed:
  libtbb-dev libtbb12 libtbbmalloc2
0 upgraded, 3 newly installed, 0 to remove and 71 not upgraded.
Need to get 325 kB of archives.
After this operation, 1,893 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 libtbbmalloc2 amd64 2021.5.0-7ubuntu2 [49.6 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 libtbb12 amd64 2021.5.0-7ubuntu2 [84.8 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 libtbb-dev amd64 2021.5.0-7ubuntu2 [191 kB]
Fetched 325 kB in 1s (425 kB/s)  
Selecting previously unselected package libtbbmalloc2:amd64.
(Reading database ... 305019 files and directories currently installed.)
Preparing to unpack .../libtbbmalloc2_2021.5.0-7ubuntu2_amd64.deb ...
Unpacking libtbbmalloc2:amd64 (2021.5.0-7ubuntu2) ...
Selecting previously unselected package libtbb12:amd64.
Preparing to unpack .../libtbb12_2021.5.0-7ubuntu2_amd64.deb ...
Unpacking libtbb12:amd64 (2021.5.0-7ubuntu2) ...
Selecting previously unselected package libtbb-dev:amd64.
Preparing to unpack .../libtbb-dev_2021.5.0-7ubuntu2_amd64.deb ...
Unpacking libtbb-dev:amd64 (2021.5.0-7ubuntu2) ...
Setting up libtbbmalloc2:amd64 (2021.5.0-7ubuntu2) ...
Setting up libtbb12:amd64 (2021.5.0-7ubuntu2) ...
Setting up libtbb-dev:amd64 (2021.5.0-7ubuntu2) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...

However, this doesn't change the error message in pip.

I've also tried to use easy_install, but I can't get it working. I installed it with pip, but I can't import it into Python and Ubuntu doesn't recognize easy_install as a command.

What is TBB 0.2? I don't see that version number in the PyPi history.

schmiggle
  • 3
  • 2

0 Answers0