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

Issues installing deeptorch >0.2.2 for M1 macos #265

Open
johanneskruse opened this issue Nov 28, 2022 · 2 comments
Open

Issues installing deeptorch >0.2.2 for M1 macos #265

johanneskruse opened this issue Nov 28, 2022 · 2 comments
Labels
enhancement&feature request New feature or request

Comments

@johanneskruse
Copy link

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

@johanneskruse johanneskruse added the enhancement&feature request New feature or request label Nov 28, 2022
@johanneskruse
Copy link
Author

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.

@aobangli
Copy link

aobangli commented Feb 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement&feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants