Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devbio-napari incompatible with tensorflow (M1 mac) #35

Open
thawn opened this issue Dec 15, 2022 · 1 comment
Open

devbio-napari incompatible with tensorflow (M1 mac) #35

thawn opened this issue Dec 15, 2022 · 1 comment

Comments

@thawn
Copy link

thawn commented Dec 15, 2022

Tensorflow before devbio-napari

Trying to install devbio-napari into an environment that has tensorflow 2.10 installed gives the following mamba error:

Looking for: ['devbio-napari']

conda-forge/osx-arm64                                       Using cache
conda-forge/noarch                                          Using cache

Pinned packages:
  - python 3.9.*


Encountered problems while solving:
  - nothing provides __linux needed by devbio-napari-0.6.0-linux_h41d4057_1

steps to reproduce:

#create env
mamba create -y -n test-env python=3.9   
conda activate test-env

#install tensorflow 2.10
mamba install -c apple tensorflow-deps
pip install tensorflow-macos==2.10
pip install tensorflow-metal==0.6

#install devbio-napari
mamba install -c conda-forge devbio-napari

Devbio-napari before tensorflow

This works better. I sitll get an error trying to install tensorflow-deps but afterwards it works anyways

If I install devbio-napari first and then try to install tensorflow. I get the following error when I try to run mamba install -c apple tensorflow-deps

Looking for: ['tensorflow-deps']

conda-forge/osx-arm64                                       Using cache
conda-forge/noarch                                          Using cache
apple/noarch                                                  No change
apple/osx-arm64                                               No change

Pinned packages:
  - python 3.9.*


Encountered problems while solving:
  - package libitk-5.3.0-h112da86_0 requires hdf5 >=1.12.2,<1.12.3.0a0, but none of the providers can be installed

I then tried to skip installing tensorflow-deps
pip install tensorflow-macos==2.10 and pip install tensorflow-metal==0.6

steps to reproduce

#create env
mamba create -y -n test-env python=3.9   
conda activate test-env

#install devbio-napari
mamba install -c conda-forge devbio-napari 

#install tensorflow 2.10
mamba install -c apple tensorflow-deps #throws an error given above
pip install tensorflow-macos==2.10
pip install tensorflow-metal==0.6
pip install n2v
pip install napari-n2v
mamba install -c conda-forge napari-aicsimageio
pip install aicsimageio[all]

Now noise2void works in devbio-napari! 🥳

Note, I cannot exclude, that tensorflow works despite the error when installing tensorflow-deps, because I successfully installed tensorflow-deps in a clean environment before, and now tensorflow has still access to the needed system libraries in the devbio-napari environment.

@comatose-tortoise
Copy link

Thank you! Only way I've found of running N2V on the M3 GPU!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants