vanvalenlab / deepcell-tf

Deep Learning Library for Single Cell Analysis
https://deepcell.readthedocs.io
Other
402 stars 90 forks source link

MacBook M3 support, DeepCell cannot be installed due to tensorflow version #705

Closed adrianomartinelli closed 6 months ago

adrianomartinelli commented 6 months ago

Describe the bug Not possible to install DeepCell on MacBook M3

To Reproduce Steps to reproduce the behavior:

pip install DeepCell

This errors with

The conflict is caused by:
    deepcell 0.12.9 depends on tensorflow~=2.8.0
    deepcell 0.12.8 depends on tensorflow~=2.8.0
    deepcell 0.12.7 depends on tensorflow~=2.8.0
    deepcell 0.12.6 depends on tensorflow~=2.8.0
    deepcell 0.12.5 depends on tensorflow~=2.8.0

However, the older version available is 2.13

pip index versions tensorflow  # Available versions: 2.15.0, 2.14.1, 2.14.0, 2.13.1, 2.13.0

Expected behavior install DeepCell

Desktop (please complete the following information):

Additional context I also tried to create a Docker image from python:3.8-slim and install DeepCell in there but this fails as well. With that approach only tensorflow 2.10 is available but not ~=2.8.0

rossbar commented 6 months ago

This is expected - deepcell-tf currently depends on tensorflow 2.8, so the system you'd like to install on must support this. I'm not sure what the status is with arm wheels for older versions of tensorflow, so you may need to build tensorflow from source.

yubin-ai commented 4 months ago

I can confirm that this issue is on another M chip apple device as well.