Skip to content

Can't Install TF on Apple M1 #45645

@mabidou

Description

@mabidou

Issue Creation
On trying to install TF 2.3 using pip install tensorflow==2.3 from the terminal, I got a success message.
I could see tensorflow 2.3 in the list of installed packages by using either conda list or pip list

When I run python from the terminal and trying to import tensorflow, it returns this error message:

(tfenv) mgd@MGD-m1 ~ % conda list tensorflow
# packages in environment at /Users/mgd/opt/anaconda3/envs/tfenv:
#
# Name                    Version                   Build  Channel
tensorflow                2.3.0                    pypi_0    pypi
tensorflow-datasets       4.1.0                    pypi_0    pypi
tensorflow-estimator      2.3.0                    pypi_0    pypi
tensorflow-metadata       0.26.0                   pypi_0    pypi
(tfenv) mgd@MGD-m1 ~ % python
Python 3.8.5 (default, Sep  4 2020, 02:22:02) 
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
zsh: illegal hardware instruction  python
(tfenv) mgd@MGD-m1 ~ % 

on uninstalling it and trying to installing again using:
pip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-2.3.0-cp38-cp38-macosx_10_14_x86_64.whl
same issue

Same scenario on trying latest version. i.e. by using just pip install tensorflow to get 2.3.1

On trying to import it from Jupyter Lab, no error message is shown and also no interaction is happening. It's as if it's empty cell.

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS Big Sur 11.0.1
  • TensorFlow installed from (source or binary):
  • TensorFlow version: 2.3.1
  • Python version: 3.8.5
  • Installed using virtualenv? pip? conda?: pip

Metadata

Metadata

Assignees

Labels

TF 2.3Issues related to TF 2.3subtype:macOSmacOS Build/Installation issuestype:build/installBuild and install issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions