-
Notifications
You must be signed in to change notification settings - Fork 11
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
stardist-napari requires tensorflow
but pip doesn't reacognize tensorflow-macos
#5
Comments
Indeed, it seems that platform dependent requirements could be include like so:
But then again, maybe its best to remove tf as explicit dependency altogether... |
That's exactly the reason why I included
Is it already known whether they'll keep the package name |
No idea, but they did update the package (and |
I'm not sure what to do. |
One option is to leave things as are, and rely on the README and napari-hub to provide info regarding installing tensorflow, etc. at first installation. Now obviously a major update that requires an update to the deps would have to provide an error/warning... |
BTW, why doesn't this issue happen with |
Yes, for this reason regular |
So I tried this in a local clone (macOS 12, arm64) and it still doesn't install via |
Yes, that is what I recurrenty observe too, most likely due to tensorflow again pinning some old numpy version. Hard to go around that :( |
Looks like Apple will continue to maintain At the same time, there is now a TF for arm64 on conda-forge (2.7.0 and 2.6.2, 2.6.0, etc) that reports as |
I think we will go for |
I wonder if there is any logic that would permit |
Yes, its complicated :)) Btw, thanks a lot for testing this all out - your image.sc post is my goto reference now :) |
Thanks 😊 I wish i could edit that OP to keep it current. |
I posted this in the other issue (#3 (comment)) but Apple has updated the tensorflow-deps conda package, so now it has numpy 1.21. So they are clearing continuing support. Tensorflow-macos just got bumped to 2.8 and tensorflow-metal just got updated too. |
Another update on the tensorflow/tensorflow-macos issue from an Apple engineer. Good news, they're aware of the issue.
See: https://developer.apple.com/forums/thread/701656?answerId=706752022#706752022 |
Update: tensorflow-macos 2.9 is live, but I don't see any difference in pip behavior. |
Update2: in a conda env (macOS, M1 arm64) with napari, but not having TF: |
I was reminded about this when I went to update my stardist-napari.
The
setup.py
includestensorflow
but on macOS the package istensorflow-macos
.pip doesn't recognize the later as the former and the install/update fails—even though it's imported as
tensorflow
.Is there a way to flag that? by platform or something? Or maybe remove it?
I do notice that
stardist
doesn't listtensorflow
as a requirement, but of course it's in the README. Here the situation is different, due to the Plugin menu install...The text was updated successfully, but these errors were encountered: