apple / tensorflow_macos

TensorFlow for macOS 11.0+ accelerated using Apple's ML Compute framework.
Other
3.67k stars 308 forks source link

import error!! #83

Open vnesh-san opened 3 years ago

vnesh-san commented 3 years ago

Hi! I recently got the MacBook Pro with M1 Chip(macOS BigSur version 11.1) and I followed the exact procedure as suggested in here, but I'm getting the following error.

Screen Shot 2020-12-19 at 10 36 07 PM

Can anyone please tell me how to resolve it?

gmarceca commented 3 years ago

Hello, did you try disabling Rosetta from your terminal as pointed here? https://github.com/apple/tensorflow_macos/issues/81#issuecomment-748563593

gmarceca commented 3 years ago

Hello, please have a look at my post https://github.com/apple/tensorflow_macos/issues/81#issuecomment-748633354, it works for me now, probably you have the same issue as I had.

repozhang commented 3 years ago

Can anyone help me with this? I also have this error. (mini_py38) Mac-mini:~ zzz$ file $(which python) /Users/zzz/anaconda/envs/mini_py38/bin/python: Mach-O 64-bit executable x86_64

I don't know how to pass arm64 python from command line tool files. I use miniforge, it only x86_64

hoytak commented 3 years ago

@repozhang -- the python executable itself comes in either x86_64 or arm64 (or arm64e). If you use the python from command line tools (see link in the readme), it has both the x86_64 and arm64 slices. That's the version we're supporting at this time.

watjurk commented 3 years ago

It seems that this issue should be marked as closed @vnesh-san @hoytak .

Thanks!