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

could not install tensorflow dependency on apple M1 #23

Closed
yyang1234 opened this issue Sep 23, 2022 · 4 comments · Fixed by #25
Closed

could not install tensorflow dependency on apple M1 #23

yyang1234 opened this issue Sep 23, 2022 · 4 comments · Fixed by #25

Comments

@yyang1234
Copy link

tried to install and got the following error

this seems to be due to the fact that I am using an M1 apple computer: see here

pip install git+https://github.com/DeepMReye/DeepMReye.git
Collecting git+https://github.com/DeepMReye/DeepMReye.git
  Cloning https://github.com/DeepMReye/DeepMReye.git to /private/var/folders/4s/b4y96bxd7n979w298f1q3nm40000gq/T/pip-req-build-f3a6j20h
  Running command git clone -q https://github.com/DeepMReye/DeepMReye.git /private/var/folders/4s/b4y96bxd7n979w298f1q3nm40000gq/T/pip-req-build-f3a6j20h
  Resolved https://github.com/DeepMReye/DeepMReye.git to commit 1c349e1c8477e4261f0de685c2d5ccb180dd7266
Collecting numpy
  Using cached numpy-1.23.3-cp39-cp39-macosx_11_0_arm64.whl (13.4 MB)
Collecting pandas
  Using cached pandas-1.5.0-cp39-cp39-macosx_11_0_arm64.whl (10.9 MB)
Collecting matplotlib
  Using cached matplotlib-3.6.0-cp39-cp39-macosx_11_0_arm64.whl (7.2 MB)
Collecting scipy
  Using cached scipy-1.9.1-cp39-cp39-macosx_12_0_arm64.whl (29.9 MB)
Collecting ipython
  Using cached ipython-8.5.0-py3-none-any.whl (752 kB)
Collecting plotly
  Using cached plotly-5.10.0-py2.py3-none-any.whl (15.2 MB)
Collecting scikit-learn
  Using cached scikit_learn-1.1.2-cp39-cp39-macosx_12_0_arm64.whl (7.7 MB)
Collecting antspyx
  Using cached antspyx-0.3.3.tar.gz (7.0 MB)
ERROR: Could not find a version that satisfies the requirement tensorflow<2.7 (from deepmreye) (from versions: none)
ERROR: No matching distribution found for tensorflow<2.7
@Remi-Gau
Copy link
Collaborator

@yyang1234 and I found this one when trying to install bidsmreye on her laptop.

I suspect that for now the "easy" way is to work on #8 and update the README to suggest M1 owners to use a docker image of deepmreye.

Another option would be to see if there are ways to have different dependency requirements depending on the machine architecture but that sounds like maintenance hell.

@CYHSM
Copy link
Contributor

CYHSM commented Sep 23, 2022

Docker seems to be the way. Also, it will make sense to split the model into a TensorFlow/GPU-needed version and a simpler version which uses scikit-learn but does not need a GPU (the performance will go down though as the 3-D input needs to be flattened & SVM<CNN).

@Remi-Gau
Copy link
Collaborator

Do you mean several docker images in this case?

@Remi-Gau
Copy link
Collaborator

Or to have an install flag with several dependencies in each case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants