tensorflow-macos install does not provide 'tensorflow' name to pip list

After successfully installing and testing tensorflow-macos I am unable to install another package that requires tensorflow. The package 'tensorflow' is not listed in the output of pip list:

$ pip list |grep tensorflow
tensorflow-estimator  2.11.0
tensorflow-macos    2.11.0
tensorflow-metal    0.7.1

even though it is available in site-packages:

$ ls -d1 ./site-packages/tensorflow*
./site-packages/tensorflow
./site-packages/tensorflow-plugins
./site-packages/tensorflow_estimator
./site-packages/tensorflow_estimator-2.11.0.dist-info
./site-packages/tensorflow_macos-2.11.0.dist-info
./site-packages/tensorflow_metal-0.7.1.dist-info

When trying to install another package that requires tensorflow, pip cannot find tensorflow:

$ ./pip install careless==0.2.7
Collecting careless==0.2.7
 Using cached careless-0.2.7-py3-none-any.whl (60 kB)
ERROR: Could not find a version that satisfies the requirement tensorflow>=2.8 (from careless) (from versions: none)
ERROR: No matching distribution found for tensorflow>=2.8

Tensorflow itself is working fine:

$ ./python -c 'import tensorflow as tf;print(tf.__version__)'
2.11.0

How can I install packages, with pip, that depend on tensorflow?

This hack works for me:

  1. Download careless source from GitHub and extract.
  2. Change setup.py with "tensorflow-macos>=2.8" instead.
  3. Run pip install /path/to/careless.
tensorflow-macos install does not provide 'tensorflow' name to pip list
 
 
Q