-
Notifications
You must be signed in to change notification settings - Fork 105
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
pip install does not work on Mac #16
Comments
Same stuff on Windows too.
I also noticed the same confusion between dashes and underscores. Seems strange to me |
Looking at the files available in pip (here: https://pypi.org/project/tensorflow-decision-forests/#files) I noticed that all the available builds, have been made for linux only (python 3.6, 3.7, 3.8 and 3.9). |
hi Thanos, Indeed the Mac version is in our TODO list, as is with windows (see issue #3 ), hence pip not finding a matching tensorflow_decision_forests version. We'll keep this issue opened and use it to post updates. Sorry about that. |
Thank you for your prompt response Have a good day! |
For Mac/Windows users: a quick fix to get your feet wet while a version in pip is being prepared is to use the model in Google Colab, or if you are an advanced user that really wants to use a local install, you can create a docker with ubuntu. (Incidentally, @janpfeifer no need to apologise! Best to put a version out there and keep adding more things than wait. Thanks very much to you and your team for your work on |
@janpfeifer Look forward to the MAC version update, thank you! |
Hey @janpfeifer, are there any updates or rough timelines you might have on this? As now TFX also has experimental support for |
hi @AlirezaSadeghi, this was very timely, since @achoum just released the Mac version yesterday, v0.2.3: https://github.com/tensorflow/decision-forests/releases/tag/0.2.3 Let us know how it goes -- it's new, so there may be some initial bumps (hopefully none). And apologies it took so long, there were some issues in TF build process that only now got sorted out (afaik). |
Super. |
The Mac version should be in pip: |
I'm still unsuccessful in installing from pip: Python 3.8.10
pip 22.0.3 When I try to install from pip ( ERROR: Could not find a version that satisfies the requirement tensorflow-decision-forests==0.2.3 (from versions: none)
ERROR: No matching distribution found for tensorflow-decision-forests==0.2.3 Is this expected? |
Currently, TF-DF is only exported for python 3.9 on MacOS (see https://pypi.org/project/tensorflow-decision-forests/#files for the list of supported versions). Until this is extended to other python version, can you try installing it again, but with python 3.9? |
Hi. I was going to get the whl file and install it (https://pypi.org/project/tensorflow-decision-forests/#files) but i got: My environment:
I think I got the right whl file, but it's weird. |
Thank you @achoum, that did the trick! |
My best guess is the version of MacOS (macosx 12 vs macosx 11). I am not certain there is effectively a difference (like for the version of python), and I would try renaming the .whl file and editing Ultimately, we will provide all the right versions directly in pip :), so thanks for your patience with all of this. |
Hi! I am running: pip3 install tensorflow_decision_forests-0.2.4-cp39-cp39-macosx_12_0_x86_64.whl on macos 12.2 Monterey but I still get: ERROR: tensorflow_decision_forests-0.2.4-cp39-cp39-macosx_12_2_x86_64.whl is not a supported wheel on this platform. Anyone else? |
me too! |
@achoum Thank you! I modified the whl file name from 12 to 11 to fit my macos version and pip installed it.
|
Upvoting a mac version for py3.8 |
Hi,
TF-DF is now released for python 2.{7,8,9} on MacOS12 See the files: https://pypi.org/project/tensorflow-decision-forests/#files Unfortunately, we are currently lacking MacOS experience, therefore we don't have a good solution to those issues. If you figure them out and share the results though, this would be awesome. My 2 cents: According the the exported Pip file for macos (see https://pypi.org/project/tensorflow-decision-forests/#files), we currently support :"macosx_12_0_x86_64" for python 2.{7,8,9}. In your error, the macos version is macosx_12_2_x86_64. In addition to the filename, the only other version specific information is in the file "/tensorflow_decision_forests-0.2.4.dist-info/WHEEL". I would not try this approach first, but editing the filename the WHEEL file content might work. |
Hi all, since we're working with macOS I was thrilled to get the support! We may have found a workaround, for the time being, for this wheel files. Setup
Workaround
After that I was able to import tfdf and train a model. Best regards, Timo |
Thanks @Timo3as for posting your workaround here. Indeed we lack MacOS expertise in our small team :\ Let's keep the issue opened until we find a way to test and release pip packages to the various MacOS versions. |
Thanks @Timo3as, your workaround worked for me also. |
@janpfeifer, can you tell me when tfdf will be available for Windows? |
hi @varunkarwa , we are actually waiting for TensorFlow Custom Ops to work again for Windows -- TF-DF uses a "custom op" for Tensorflow. But at home I have a windows box and I use TF-DF always on WSL (windows sub-system for linux), where I run the kernel for my notebooks. It works really nicely, I recommend. And in WSL2 it must be almost as fast I would think. (Generally my models at home are smaller, so it's always very fast). #3 is the issue tracking WIndows support. Also notice that Yggdrasil, the underlying C++ implementation of the algorithms, work for WIndows. So you can link it to do inference in a windows program for instance. |
me too,not work on Mac OS m1 |
check comment from @Timo3as. His workaround worked for me on Mac. |
Yes it works on Intel Core i7,but failed on Mac of m1 |
Has anything changed now? |
hi all, just wanted to update on unfortunately "no updates" for M1 yet. TensorFlow on M1 doesn't make it easy to support "TensorFlow Custom Ops", which we need for TF-DF :( ... since we don't yet have an update on this on TF side, we can't provide one for TF-DF either. A question for those interested: if for Mac M1 we had a Decision Forests model working in pure Python -- mostly with the same API, just not integrated into TensorFlow. The model could be used with numpy, matplotlib, notebook etc. And after training/developing with these models, it could be exported for TF Serving (for Linux). Would such a stop-gap solution be useful ? |
Hi, We just published a MacOS pre-release for TF-DF 1.0.1 here: https://github.com/tensorflow/decision-forests/releases/tag/macos-1.0.1 This includes packages for Apple silicon (M1 / M2) processors Everyone is invited to test it and report any bugs. Please include as much information about your python version and system as you're comfortable sharing (e.g. the output of We plan to upload the release to Pypi as soon as possible. |
hi @rstz Happen to try MacOS pre-release for TF-DF 1.0.1, but it returns error when install through pip: python3 -m pip install tensorflow_decision_forests-1.0.1-cp38-cp38-macosx_12_0_x86_64.whl % uname -a % python3 --version % python3 -m pip debug -v Can you let me know why? |
Hi @JJblockchain2060, thank you for the report. This is most likely an issue of non-matching platform tags. If you rename the wheel to |
thanks! with the change, I can install now |
We just published TF-DF 1.0.1 for Mac on PyPi 😃 |
how to get version 2.0.5 @rstz ? |
I'm not sure what you mean, there is no Version 2.0.5 of TF-DF or TensorFlow. |
Hi, in my Mac (M2) VSCode crashes always when run "import tensorflow_decision_forests as tfdf". I already reinstalled tensorflow (2.11.0), tensorflow-macos (2.11.0), tensorflow-metal (0.7.0) and tensorflow_decision_forests (1.1.0). Any clue? "Canceled future for execute_request message before replies were done |
Hi Marcos |
I'm getting this issue too but on Fedora 38 |
Hey there,
First of all, congratulations for your effort, this is a great initiative!
I am raising this issue because I have faced a problem with installation. I have created a Python 3.8.6 virtual environment on my Mac and installed
tensorflow
2.5.0 successfully. When I ran the installation command for the "Tensorflow Decision Forests" package,pip3 install tensorflow_decision_forests --upgrade
I got:
ERROR: Could not find a version that satisfies the requirement tensorflow_decision_forests (from versions: none) ERROR: No matching distribution found for tensorflow_decision_forests
It's a bit confusing because the installation command on PyPi (I guess this is the right one) contains dashes ,instead of underscores, in the package name.
Any ideas?
Thanks a lot
The text was updated successfully, but these errors were encountered: