recommenders icon indicating copy to clipboard operation
recommenders copied to clipboard

Tensorflow Recommenders on M1

Open OmarMAmin opened this issue 2 years ago • 2 comments

Hi Team,

Whenever I need to install tf-recommenders, I can only install earlier versions, as the latest version strictly require tensorflow>=2.9.0 in the requirements.txt file, and in the case of m1, I install tensorflow-macos-2.11.0, not sure how this can be handled in the requirements file, but i usually ignore the dependencies while installing the library to make sure I'm installing the latest version.

OmarMAmin avatar Jan 03 '23 14:01 OmarMAmin

This was fixed in https://github.com/tensorflow/recommenders/pull/549, but hasn't made it to a versioned release, cc: @maciejkula.

The quickest fix for you at this time is to install the package via git. git+https://github.com/tensorflow/recommenders

patrickorlando avatar Jan 03 '23 23:01 patrickorlando

The fix is somewhat awkward. tensorflow-macos is mainly for m1. non m1 macs also still commonly exist and can install tensorflow and should prefer it over macos. Non-m1 macs have tensorflow wheels. Ideally tensorflow-macos would only be dependency on m1, but unsure that's possible to describe.

hmc-cs-mdrissi avatar Mar 01 '23 12:03 hmc-cs-mdrissi