Professional Documents
Culture Documents
MacBook M1: Installing TensorFlow and Jupyter Notebook - by Gonzalo Ruiz de Villa - Gft-Engineering - Apr, 2021 - Medium
MacBook M1: Installing TensorFlow and Jupyter Notebook - by Gonzalo Ruiz de Villa - Gft-Engineering - Apr, 2021 - Medium
21 01:11
!"#$%%&'!()'*+,-"..*+/
01+,%23.%4'"+5'6789-12
:%-1;%%&
!"#$%&"'()*$'+,'-*&&% ."&&"/
012'3'·'4'5*#'2,%+
https://medium.com/gft-engineering/macbook-m1-tensorflow-on-jupyter-notebooks-6171e1f48060 Página 1 de 9
MacBook M1: installing TensorFlow and Jupyter Notebook | by Gonzalo Ruiz de Villa | gft-engineering | Apr, 2021 | Medium 06/05/2021 01:11
!"#$%&'%()*"+,,%-./0#
Xcode consists of a suite of tools that developers use to build
apps for Apple platforms.
You can install Xcode from the App Store or you can download
it from the Developer site.
!"#$%1'%()*"+,,%"2#%3/44+)0%56)#%7//,*
8+.9+:#
As defined in the documentation, the Command Line Tools
Package is a small self-contained package available for
download separately from Xcode and that allows you to do
command line development in macOS.
xcode-select --install
https://medium.com/gft-engineering/macbook-m1-tensorflow-on-jupyter-notebooks-6171e1f48060 Página 2 de 9
MacBook M1: installing TensorFlow and Jupyter Notebook | by Gonzalo Ruiz de Villa | gft-engineering | Apr, 2021 | Medium 06/05/2021 01:11
!"#$%;'%()*"+,,%<6)6=/>:#
Anaconda is a distribution of the Python and R programming
languages for scientific computing, that aims to simplify
package management and deployment. However, Anaconda
comes with many Python packages included, some of which are
not Apple Silicon (i.e. ARM) compatible and thus Anaconda is
not ARM compatible. Miniforge has Conda, which means you
can install many of the packages you want such as Pandas,
Scipy, and Numpy — unlike Anaconda, you just have to do the
install manually by running ‘conda install
mypackagenamehere’.
bash Miniforge3-MacOSX-arm64.sh
https://medium.com/gft-engineering/macbook-m1-tensorflow-on-jupyter-notebooks-6171e1f48060 Página 3 de 9
MacBook M1: installing TensorFlow and Jupyter Notebook | by Gonzalo Ruiz de Villa | gft-engineering | Apr, 2021 | Medium 06/05/2021 01:11
conda
6"#+%'7,25*#%&'")71)7
!"#$%?'%3>#+"#%+%./)0+%#)@6>/)4#)"%+)0
6)*"+,,%7#)*/>=,/A
TensorFlow is a free and open-source software library for
machine learning. It can be used across a range of tasks but has
a particular focus on training and inference of deep neural
networks. Tensorflow is a symbolic math library based on
dataflow and differentiable programming.
https://medium.com/gft-engineering/macbook-m1-tensorflow-on-jupyter-notebooks-6171e1f48060 Página 4 de 9
MacBook M1: installing TensorFlow and Jupyter Notebook | by Gonzalo Ruiz de Villa | gft-engineering | Apr, 2021 | Medium 06/05/2021 01:11
https://github.com/apple/tensorflow_macos/issues/153.
name: apple_tensorflow
channels:
- conda-forge
- nodefaults
dependencies:
- grpcio
- h5py
- ipython
- numpy
- pip=20.2.4
- python=3.8
- scipy
- termcolor
- typeguard
- wheel
- absl-py
- astunparse
- python-flatbuffers
- gast
- google-pasta
- keras-preprocessing
- opt_einsum
- protobuf
- tensorboard
- tensorflow-estimator
- termcolor
- typing_extensions
- wrapt
https://medium.com/gft-engineering/macbook-m1-tensorflow-on-jupyter-notebooks-6171e1f48060 Página 5 de 9
MacBook M1: installing TensorFlow and Jupyter Notebook | by Gonzalo Ruiz de Villa | gft-engineering | Apr, 2021 | Medium 06/05/2021 01:11
7,25*#%&'")1)7'*51"27*#8'7,#9"2:&"/'*#'1;7<"#
!"#$%B'%6)*"+,,%CD$E"#>%F/"#G//9*
https://medium.com/gft-engineering/macbook-m1-tensorflow-on-jupyter-notebooks-6171e1f48060 Página 6 de 9
MacBook M1: installing TensorFlow and Jupyter Notebook | by Gonzalo Ruiz de Villa | gft-engineering | Apr, 2021 | Medium 06/05/2021 01:11
jupyter notebook
!"#$%H'%6)*"+,,6):%./44/)%+006"6/)+,
$+.9+:#*
The common packages can be installed with conda-forge. For
me, it was the best way to avoid installation problems and
avoid loosing hours googling for the solutions.
!"#$%I'%*"+>"%$,+E6):%A6"2%"2#%)/"#G//9*
Again:
https://medium.com/gft-engineering/macbook-m1-tensorflow-on-jupyter-notebooks-6171e1f48060 Página 7 de 9
MacBook M1: installing TensorFlow and Jupyter Notebook | by Gonzalo Ruiz de Villa | gft-engineering | Apr, 2021 | Medium 06/05/2021 01:11
jupyter notebook
And tada!
7>/DG,#*2//"6):
After publishing the article, someone reached me with this
error when installing TensorFlow:
ERROR: tensorflow_macos-0.1a3-cp38-cp38-
macosx_11_0_arm64.whl is not a supported wheel on this
platform.
https://medium.com/gft-engineering/macbook-m1-tensorflow-on-jupyter-notebooks-6171e1f48060 Página 8 de 9
MacBook M1: installing TensorFlow and Jupyter Notebook | by Gonzalo Ruiz de Villa | gft-engineering | Apr, 2021 | Medium 06/05/2021 01:11
https://medium.com/gft-engineering/macbook-m1-tensorflow-on-jupyter-notebooks-6171e1f48060 Página 9 de 9