shenweichen/DeepCTR-Torch

Issues installing deeptorch >0.2.2 for M1 macos

johanneskruse opened this issue · 2 comments

I'm trying to install your package, however, versions (0.2.2>) does not support the Macos with M1 chip.

Currently the following is required;
REQUIRED_PACKAGES = ['torch>=1.2.0', 'tqdm', 'scikit-learn', 'tensorflow']

But for installing tensorflow for M1 I need to install:

  • 'tensorflow-macos'

Looking at version deepctr-torch==0.2.2, the following is required:
REQUIRED_PACKAGES = ['torch>=1.1.0', 'tqdm', 'sklearn']

Futhermore, for an 'torch' implementation, why is the tensorflow needed?

The package is great, and I hope you can help resolved the issue

I found the following solution:

  • pip install deepctr-torch==0.2.9 --no-deps

Installing without any dependencies, and then installing each package manually ( using 'pip install tensorflow-macos' )

I am not sure if it is possible to have that in the setup file but for any other M1 users, this is a work around that worked for me.

Thanks for your solution! It works on my MacBookAir with M1 chip! By the way, it seems that tensorflow callback is applied during training, actually I don't really need this if I have to install tensorflow, especially in a pytorch version of the package.